Missing checks in calls to variadic functions inside checked scope #1178
Labels
bug
This labels issues that are bugs.
future work
This labels issues that need further triaging and discussion.
#1174 added support to call variadic functions in checked scope. There are several checks which are yet to be implemented. The PR does not do any bounds checking for the arguments to printf/scanf like functions. The following issues were raised by @mattmccutchen-cci on the PR.
I realize I may have waited a little too late to post this, but I tested this PR and found several holes in the new checking. If you save the code below as
printf-checking-bugs.c
and then runclang -o printf-checking-bugs printf-checking-bugs.c
and./printf-checking-bugs percent_n
, etc., you can see the SEGV. If you don't want to address the problems in this PR, I can copy the examples to a new issue.Originally posted by @mattmccutchen-cci in #1174 (comment)
The text was updated successfully, but these errors were encountered: