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

 
 

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

Submitter:  Micah Cowan <micahcowan>
Submitted:  Fri 06 Jul 2007 11:21:39 PM UTC
   
 
Category:  Code Architecture Severity:  2 - Minor
Priority:  4 Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  1.15 Regression:  None
Work Required:  1 - Days Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-01-27 micahcowan Planned Release1.12 1.15
    2007-08-27 micahcowan Priority8 4
    2007-08-01 micahcowan Priority5 - Normal 8
    2007-07-20 micahcowan Planned ReleaseNone 1.12

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code