Talk:c/string/byte/strncat

UB of strncat_s
Writing beyond the end of array is buffer overflow: count --           src:   |. |                  --                    |                         | '\0'                   |                         |  |                   V                         V  V               destsz --.............................. dest:  |         | \0 |         |. --..............................

Reading beyond the end of array is buffer overflow:

count ---................           src:   |             |. ---................                  |                             | '\0'                   |                             |  |                   V                             V  V           destsz dest:  |         | \0 |                                       |

Is there another case of UB? Newatthis (talk) 04:14, 18 September 2015 (PDT)