M
Mark
Hello,
I have quite a generic question. Suppose we work with fwrite(), or sendto()
(not C standard function, but I'll assume everyone knows it) or any other
API that takes a pointer to a buffer to trasnmit. When such a buffer is
unititialised, does it in some ways impose undefined behaviour?
I'm asking this, because when such code is run under 'valgrind' it reports a
lot about uninitiased memory or 'unaddressable values in syscalls' -- does
it imply such will act undefined due to uninit storages used as buffers?
Would appreciate the comments on it. Thanks.
Mark
I have quite a generic question. Suppose we work with fwrite(), or sendto()
(not C standard function, but I'll assume everyone knows it) or any other
API that takes a pointer to a buffer to trasnmit. When such a buffer is
unititialised, does it in some ways impose undefined behaviour?
I'm asking this, because when such code is run under 'valgrind' it reports a
lot about uninitiased memory or 'unaddressable values in syscalls' -- does
it imply such will act undefined due to uninit storages used as buffers?
Would appreciate the comments on it. Thanks.
Mark