summaryrefslogtreecommitdiff
path: root/drivers/qmimodem/sim-legacy.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2019-04-29 14:16:17 -0500
committerDenis Kenzior <denkenz@gmail.com>2019-04-29 14:16:17 -0500
commit4a93c329b9139af380da49ef373e7ad72834d210 (patch)
tree7241bb34e6fd50323e083fc82c1f4d77df4fa593 /drivers/qmimodem/sim-legacy.c
parentb126407632ef5f2c1196aef666d0fb09547acaa5 (diff)
downloadofono-4a93c329b9139af380da49ef373e7ad72834d210.tar.gz
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.
Diffstat (limited to 'drivers/qmimodem/sim-legacy.c')
0 files changed, 0 insertions, 0 deletions