Closed secure-sw-dev-bot closed 2 years ago
Comment from @mgrang:
Could you please add a title describing the changes?
Comment from @mattmccutchen-cci:
Ideally, the new PR title would encompass the removal of the conditional from snprintf
(#450) as well as the checkedc_extensions.h
changes (#449). Sulekha, would you be willing to change it?
Comment from @sulekhark:
Ideally, the new PR title would encompass the removal of the conditional from
snprintf
(#450) as well as thecheckedc_extensions.h
changes (#449). Sulekha, would you be willing to change it?
Yes, of course.
This issue was copied from https://github.com/microsoft/checkedc/issues/456
This PR contains fixes for issues #449 and #450. They are, in brief: 1) link-time errors caused by declaring
strncmp_array_ptr
asextern inline
, 2) missing definition forsnprintf_array_ptr
, and 3) inconsistency between the second argument ofsnprintf
(i.e. the argumentn
) and the bounds declaration for the first argument ofsnprintf
(i.e., the arguments
) when n == 0.