Menu

#92 rmd_specsfile.c: 2 * bad call to fscanf ?

v1.0 (example)
closed
nobody
None
5
2021-03-13
2014-04-11
dcb
No

1.

[rmd_specsfile.c:90]: (warning) scanf without field width limits can crash with huge input data

Source code is

    if(fscanf(fp,"recordMyDesktop = %s\n",Cached_Version)!=1){

Maybe better code is

    if(fscanf(fp,"recordMyDesktop = %256s\n",Cached_Version)!=1){

2.

[rmd_specsfile.c:102]: (warning) scanf without field width limits can crash with huge input data.

Duplicate.

Discussion

  • Martin Nordholts

    Hmm I don't get that warning. What are your compilation options?

     
  • Martin Nordholts

    Thanks for taking the time to report a bug! This issue is now very old. If the problem still exists, please file an issue at the new GitHub page: https://github.com/Enselic/recordmydesktop

     
  • Martin Nordholts

    • status: open --> closed
     

Log in to post a comment.