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

Submitted by:  Ville Skyttä <scop>
Submitted on:  Mon 11 May 2015 09:40:27 AM UTC  
 
Category: gnokiiSeverity: 3 - Normal
Item Group: crashStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 11 May 2015 05:42:07 PM UTCdforsiStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1