#557045 cppcheck: please recognise that read(2) can lead to buffer overflows

Package:
cppcheck
Source:
cppcheck
Description:
tool for static C/C++ code analysis (CLI)
Submitter:
Raphael Geissert
Date:
2015-12-29 00:33:03 UTC
Severity:
wishlist
#557045#3
Date:
2009-11-19 06:44:51 UTC
From:
To:
Package: cppcheck
Version: 1.38-1
Severity: wishlist

Hi,

It would be great if cppcheck detected the two buffer overflows demonstrated
on the attached test case.

Cheers,

#557045#10
Date:
2009-11-20 22:03:18 UTC
From:
To:
Hi,

Thanks for the report!

First case reported and fixed in upstream trunk:
http://sourceforge.net/apps/trac/cppcheck/ticket/985

Second case reported to upstream:
https://sourceforge.net/apps/trac/cppcheck/ticket/991