Menu

#1220 Statement might be overflowing a buffer in strncat

v4.2.0
closed
None
complete
1
2014-04-15
2013-12-09
No

During the validation of the OpenSUSE´s rpm package the system detected a possible buffer overflow:

I: Statement might be overflowing a buffer in strncat. Common mistake:
BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the left over size as 3rd argument
GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)
E: ooRexx bufferoverflowstrncat ./interpreter/platform/unix/SysFileSystem.cpp:424:55

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2013-12-11
    • status: open --> accepted
    • assigned_to: Mark Miesfeld
    • Pending work items: none --> code
     
  • Mark Miesfeld

    Mark Miesfeld - 2013-12-11
    • status: accepted --> pending
    • Pending work items: code --> complete
    • Group: None --> v4.2.0
     
  • Mark Miesfeld

    Mark Miesfeld - 2013-12-11

    Committed revision 9683. [r9683] trunk
    Committed revision 9684. [r9684] 4.2.0 branch

     

    Related

    Commit: [r9683]
    Commit: [r9684]

  • Rick McGuire

    Rick McGuire - 2014-04-15
    • status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo