Menu

#11 ixpm.c: 2 * off by one error ?

1.0
closed
nobody
None
2022-04-13
2022-04-06
dcb
No

Static analyser cppcheck says:

ixpm.c:168:7: error: Width 100 given in format string (no. 1) is larger than destination buffer 's[100]', use %99s to prevent overflowing it. [invalidScanfFormatWidth]

ixpm.c:271:3: error: Width 100 given in format string (no. 1) is larger than destination buffer 's[100]', use %99s to prevent overflowing it. [invalidScanfFormatWidth]

Discussion

  • Willem Vermin

    Willem Vermin - 2022-04-06

    You are right! Thanks for mentioning and pointing me to cppcheck.

    Will correct this in the next release.

     
  • Willem Vermin

    Willem Vermin - 2022-04-13
    • status: open --> closed
     
  • Willem Vermin

    Willem Vermin - 2022-04-13

    Fixed in 3.5.0

     

Log in to post a comment.