You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ensure buffer is always null-terminated even on failure to prevent buffer over-reads
235
+
// At this point, the buffer is known to be non-empty, so it must have space for at least a null terminating byte (even if it overwrites the final output byte in the buffer)
// Ensure buffer is always null-terminated even on failure to prevent buffer over-reads
352
+
// At this point, the buffer is known to be non-empty, so it must have space for at least a null terminating byte (even if it overwrites the final output byte in the buffer)
353
+
buffer[buffer.count -1]=0
354
+
}
327
355
328
356
// We only allow embedded nulls if there are no non-null characters following the first null character
0 commit comments