Menu

#20 uninitialized local variable 'TempPath' used

v1.0_(example)
closed-accepted
None
5
2024-01-16
2024-01-15
Anonymous
No

There is use of an uninitialized variable 'TempPath' when the "verbose" flag is set. See https://sourceforge.net/p/dos2unix/dos2unix/ci/master/tree/dos2unix/common.c#l1522

This in turn would result in undefined behavior because twe don't know what the address of 'TempPath' would be on the stack.

Discussion

  • Erwin Waterlander

    Hi,

    Thanks for reporting!
    Fixed in [efe7bc]

     

    Related

    Commit: [efe7bc]

  • Erwin Waterlander

    I accidentally added files in po/incoming/, They have been removed in the next commit.

     
  • Erwin Waterlander

    • status: open --> closed-accepted
     

Anonymous
Anonymous

Add attachments
Cancel