Commit b0ed810f authored by Arjun Gour's avatar Arjun Gour Committed by Reini Urban
Browse files

Update runtime constraint violation checks

* It was observed that for strncpy_s,strncat_s, wcsncpy_s & wcsncat_s,
some of the run-time constraint violation weren't performing the corrective action.

1) src = NULL when dst != NULL & dmax !=0 && less than RSIZE_MAX_STR is a run-time
violation & we need to update dst[0] = 0; in this scenario which was missing.

2) slen > RSIZE_MAX_STR is also a runtime constraint violation  &
we need to update dst[0] = 0; in this scenario which was missing.
parent a8a75a6a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment