jonneytest / sma-bluetooth

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

Program not checking that sma.in.new file exists - Seg Fault #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run smatool without sma.in.new in the correct directory as specified in 
smatool.conf

What is the expected output?
Program should test to make sure that the file is there, as it is not it should 
print out error and then exit gracefully.

What do you see instead?
Segmentation Fault.  Looked at the source code and using GDB saw that the code 
is crashing on the call to feof(fp) in InitReturnKeys() because fp will be null 
as expected.

What version of the product are you using? On what operating system?
Ubuntu 10.10, using v0.13

Please provide any additional information below.
Not a major problem, just good to have it fixed when possible.  Although could 
put off users, took me a while to figure it out.  I was trying to set it up as 
a cron job and this is when the problem started.

Original issue reported on code.google.com by chris.le...@gmail.com on 29 Jun 2011 at 1:26

GoogleCodeExporter commented 8 years ago
This is now fixed. New version will be pushed up in a few days

Original comment by stephenb...@gmail.com on 27 Feb 2013 at 4:36