mirror of git://git.sysmocom.de/ofono
log: Fix potential buffer overflow
We pass in the maximum size of the buffer to the read system call. On the astronomically unlikely chance that we indeed read the full buffer full of data, the subsequent assignment will overflow it. Fix this by passing sizeof(buf) - 1 to the read system call instead.
This commit is contained in:
parent
b126407632
commit
4a93c329b9