#108 read04 calls strcmp() on unterminated string

System Calls
closed-accepted
mreed
Testcases (113)
5
2007-04-13
2006-12-04
No

ltp/testcases/kernel/syscalls/read/read04.c writes TST_SIZE = 26 bytes "ABC..Z" to a file and reads them back in to prbuf[] which it not terminated.

One simple fix it to write the '\0' to the test file, thus reading it in.

Discussion

  • Robert Williamson

    • assigned_to: nobody --> mreed10
     
  • Subrata Modak

    Subrata Modak - 2007-04-13
    • status: open --> closed-accepted
     
  • Subrata Modak

    Subrata Modak - 2007-04-13

    Logged In: YES
    user_id=1737361
    Originator: NO

    Patch Applied and Bug Closed

    Thanks--
    Subrata

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks