buggnokii - Bugs: bug #45070, crash with --getsms start=0

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45070: crash with --getsms start=0

Submitter:  Ville Skyttä <scop>
Submitted:  Mon 11 May 2015 09:40:27 AM UTC
   
 
Category:  gnokii Severity:  3 - Normal
Item Group:  crash Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Mon 11 May 2015 05:42:07 PM UTC, comment #1: 

Thank you for reporting this bug. It should be fixed by this commit http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=d26383c991dc61aff349cd444d60d85a4bdea316

Please test it because I couldn't test it with a phone with a PM_OLD_DEFAULT flag.

Daniele

Daniele Forsi <dforsi>
Group administrator
Mon 11 May 2015 09:40:27 AM UTC, original submission:  

Maybe using 0 as the value for "start" is not valid, but I think it shouldn't crash. (Starting from 1 works fine here.)

$ gnokii --getsms IN 0
GNOKII Version 0.6.31
Segmentation fault (core dumped)

$ cat ~/.gnokiirc
[global]
model = 6510
port = /dev/ttyUSB1
connection = serial

$ gdb /usr/bin/gnokii core.16322
[...]
(gdb) bt
#0  0x00007f25de548721 in NK6510_GetSMS (state=0x7f25de92d010, data=0x7f25de92d3f8) at nk6510.c:1600
#1  NK6510_Functions (op=<optimized out>, data=0x7f25de92d3f8, state=0x7f25de92d010) at nk6510.c:469
#2  0x00007f25de5250b7 in gn_sms_get (data=<optimized out>, state=<optimized out>) at gsm-sms.c:1018
#3  0x00007f25de9d2468 in getsms (argc=<optimized out>, argv=<optimized out>, data=0x7f25de92d3f8, state=0x7f25de92d010)
    at gnokii-sms.c:744
#4  0x00007f25de9c46da in parse_options (argc=4, argv=0x7ffffaad9be8) at gnokii.c:897
#5  0x00007f25de9c3715 in main (argc=4, argv=0x7ffffaad9be8) at gnokii.c:1234

Ville Skyttä <scop>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dforsi (Posted a comment)
  • -email is unavailable- added by scop (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-11 dforsi StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code