]> git.ozlabs.org Git - ppp.git/commit
Fixing buffer overflow issue in chat.c
authorRobert Bartel <r.bartel@gmx.net>
Fri, 10 Mar 2023 18:31:52 +0000 (18:31 +0000)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 17 Mar 2023 09:03:10 +0000 (20:03 +1100)
commit6292210a9d14c0d947a5c3fb10f0d289815cd24f
tree9361566232ce3692dd888b597a5bc6dbdf0a02e6
parenta20059a09c56555f6c2006a7193de4c1676b477a
Fixing buffer overflow issue in chat.c

There were two issues here, the report_buffer is too small to hold the
value, and accessing the memory outside its bounds. The following fixes
was made:
- Expand the size of report_buffer to 4096 from 256, this is to account
  for handling of really long GSM USSD report strings
- Make sure to not to access memory outside the bounds of the buffer

Signed-off-by: Robert Bartel <r.bartel@gmx.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
chat/chat.c