bugGNU Wget - Bugs: bug #20390, Don't rely on different structs...


bug #20390: Don't rely on different structs being in sync.

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Fri 06 Jul 2007 11:21:39 PM UTC  
Category: Code ArchitectureSeverity: 2 - Minor
Priority: 4Status: Confirmed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: NoneOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: 1.15Regression: None
Work Required: 1 - DaysPatch Included: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 10 Jul 2007 11:47:11 PM UTC, comment #1:

the command-line opts do not use index-based matching.

Micah Cowan <micahcowan>
Fri 06 Jul 2007 11:21:39 PM UTC, original submission:

Avoid index-based matching between separate struct arrays (such as for command-line opts struct versus options struct). This becomes a synchronization hazard.

enum url_scheme and supported_schemes need closer binding, to avoid possible future mismatches.

Better to use one array of arrays of structs, or structs of structs, rather than separate lists of structs that could get out of sync.

Micah Cowan <micahcowan>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by micahcowan (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Jan 2008 04:25:35 AM UTCmicahcowanPlanned Release1.12=>1.15
    Mon 27 Aug 2007 05:16:34 PM UTCmicahcowanPriority8=>4
    Wed 01 Aug 2007 04:42:56 AM UTCmicahcowanPriority5 - Normal=>8
    Fri 20 Jul 2007 05:13:32 AM UTCmicahcowanPlanned ReleaseNone=>1.12

    Back to the top

    Powered by Savane 3.1-cleanup1