Thanks for your comments.
but i have one more doubt that how read() handle unallocated buffer (i.e char *buff=NULL) vs Allocated Buffer (char *buff = malloc(size))
Thanks for your comments.
but i have one more doubt that how read() handle unallocated buffer (i.e char *buff=NULL) vs Allocated Buffer (char *buff = malloc(size))
Hi,
I am using linux version 4.1.12-112.14.15.el7uek.x86_64
in one of my program where i am reading data into buffer( pnext) however read() returns a valid return value (len =8) but buffer seems to be corrupted (pnext = 0x64726f7773736170 ). is there any chance read() can lead to this...