Closed danielpieczko closed 2 years ago
Warnings aren't enabled in the Linux/Mac host endpoint build, but there are some from my Windows build environment (VisualStudio 2019 with nmake):
memcpy_s
memcpy
_CRT_SECURE_NO_WARNINGS
int
unsigned
write_size < 0
write_size
Warnings aren't enabled in the Linux/Mac host endpoint build, but there are some from my Windows build environment (VisualStudio 2019 with nmake):
memcpy_s
instead ofmemcpy
; this is ignored by the_CRT_SECURE_NO_WARNINGS
defineint
tounsigned
because of an unsigned comparisonwrite_size < 0
test is always false becausewrite_size
is unsigned; place an equivalent check before the write happens