Menu

#446 sphinx3-0.8/src/libs3decoder/libam/kdtree.c: 2 * off by one ?

next release
closed
nobody
None
1
2015-11-01
2015-10-31
dcb
No

[kdtree.c:197]: (error) Width 256 given in format string (no. 1) is larger than destination buffer 'line[256]', use %255s to prevent overflowing it.

Source code is

n = fscanf(fp, "%256s", line);

[kdtree.c:202]: (error) Width 256 given in format string (no. 1) is larger than destination buffer 'line[256]', use %255s to prevent overflowing it.

Duplicate.

Discussion

  • Nickolay V. Shmyrev

    Fixed in trunk, thank you for the report.

     
  • Nickolay V. Shmyrev

    • status: open --> closed
     

Log in to post a comment.