baboom09 / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

Buffer overflow, solution attached #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to run program
2. Get segfault due to buffer overflow
3.

What is the expected output? What do you see instead?
core dumped

What version of the product are you using? On what operating system?
0.15 on Ubuntu 11.04 64-bit

Please provide any additional information below.
Need to increase size of description char array from 20 to 21 to fit in the 
null terminator at the end.

{code}
diff -rw sma-bluetooth/smatool.c sma-bluetooth.orig/smatool.c
73c73
<       char            description[21];

---
>     char              description[20];

Original issue reported on code.google.com by djkammer...@gmail.com on 28 Nov 2011 at 2:17