Package: gnokii
Version: 0.6.8-0.2
Severity: important

I'm using gnokii with model AT over a irda connection to connect to my
Nokia 6021. With this version of gnokii, the following happens:

| $ echo "test;11;ME;2;0" | gnokii --writephonebook
| GNOKII Version 0.6.8
| Libsafe version 2.0.16
| Detected an attempt to write across stack boundary.
| Terminating /usr/lib/gnokii/gnokii.
|     uid=1000  euid=1000  pid=5675
| Call stack:
|     0xb7f9a41c  /lib/libsafe.so.2.0.16
|     0xb7f9b1fa  /lib/libsafe.so.2.0.16
|     0xb7f3205c  /usr/lib/libgnokii.so.2.0.3
|     0xb7f53bd7  /usr/lib/libgnokii.so.2.0.3
|     0xb7f549f2  /usr/lib/libgnokii.so.2.0.3
|     0xb7f579d0  /usr/lib/libgnokii.so.2.0.3
|     0xb7f559a6  /usr/lib/libgnokii.so.2.0.3
|     0xb7f20aa7  /usr/lib/libgnokii.so.2.0.3
|     0x80533fa   /usr/lib/gnokii/gnokii
|     0x805622a   /usr/lib/gnokii/gnokii
|     0xb7d03eab  /lib/tls/i686/cmov/libc-2.3.5.so
| overflow caused by sprintf()
| Sent email to [EMAIL PROTECTED]

I attached my config file, and the gnokii output with debugging turned on. With 
0.6.5-1, this problem does not occur.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (600, 'unstable'), (570, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gnokii depends on:
ii  libbluetooth1             2.19-1         Library to use the BlueZ Linux Blu
ii  libc6                     2.3.5-7        GNU C Library: Shared libraries an
ii  libglib1.2                1.2.10-10      The GLib library of C routines
ii  libgnokii2                0.6.8-0.2      Gnokii library
ii  libgtk1.2                 1.2.10-18      The GIMP Toolkit set of widgets fo
ii  liblockfile1              1.06           NFS-safe locking library, includes
ii  libx11-6                  6.8.2.dfsg.1-9 X Window System protocol client li
ii  libxext6                  6.8.2.dfsg.1-9 X Window System miscellaneous exte
ii  libxi6                    6.8.2.dfsg.1-9 X Window System Input extension li
ii  libxpm4                   6.8.2.dfsg.1-9 X pixmap library
ii  passwd                    1:4.0.13-3     change and administer password and
ii  timeout                   1.11-6.2       Run a command with a time limit.
ii  xlibs                     6.8.2.dfsg.1-9 X Window System client libraries m

gnokii recommends no packages.

-- no debconf information

-- 
Philipp Weis          [EMAIL PROTECTED]
# This is a sample ~/.gnokiirc file.  Copy it into your
# home directory and name it .gnokiirc.
#

[global]

# Set port to the physical serial port used to connect to your phone.
# Linux version is:
port = /dev/ircomm0
#
# For MacOSX you will need something like:
# port = /dev/cu.USA28X1P1.1
#
# For Win32 you want to use:
# port = com1:
# or similiar.
#
# FreeBSD (probably NetBSD and OpenBSD too) use:
# port = /dev/cuaa0
#
# Use this setting also for the Bluetooth connection:
# port = aa:bb:cc:dd:ee:ff

# Set model to the model number of your phone. For the
# Symbian phones use:
# model = series60
# For other non-Nokia phones and when you want to use AT
# mode use:
# model = AT
# If you can't figure out what to put here read the FAQ.
# If it still doesn't help, consult gnokii-ml or #gnokii at freenode.
model = AT

# Initlength controls the number of characters sent to the
# phone during initialisation.  You can either set it to
# the word "default" or a positive integer.
#
# You can try setting this value if you want to connect
# to the phone quicker.  If you've never noticed the
# connection to be slow, it is suggested that you
# leave this alone.  Read the initialisation code in fbus-xxxx
# to understand what this changes if you're curious.
initlength = default

# The type of the connection, for IR set this to infrared or irda.
# For the nk6110 driver only infrared is valid for the IrDA connection.
# See Docs/gnokii-ir-howto for more detailes on this.
# If you have 6210/6250/7110 phone and dau9p cable (the one you can
# use with 6100 series and cannot use hardware modem from the phone)
# you may want to use 'dau9p' value to get faster initialization.
# If you use dlr3 or dlr3p cable for nokia phones in FBUS mode (ie.
# you don't use model = AT) you may want to use 'dlr3p' value here.
# Note that it is recommended and currently the best way to use this
# cable with nk6510 driver.
connection = irda

# Set this to 'yes' if you want gnokii to set and check the lock file in
# /var/lock directory. It avoids potential conflicts with other serial
# port software (eg. minicom). If you have wrong permissions for the
# directory, a warning will be generated. If you don't want a lockfile, set
# it to 'no'.
use_locking = no

# Baudrate to use on serial port connections.
# Currently used only by models AT and BIP/CIMD. Defaults to 19200.
serial_baudrate = 19200

# Force waiting after each send character the specified usec time.
# Value -1 forces the fastest 'block' writing,
# value 0 writes each character separately without any explicite waiting,
# other positive values specify the appropriate 1/1000000 sec delaying.
# Siemens M20 requires at least "1"!  FIXME: Model-driven autodetection
#serial_write_usleep = 10000

# Force serial port handshaking mode, useful primarily for "AT" model.
# Gnokii "AT" model uses software handshake by default.
# Possible values: hardware (RTS/CTS - 7 wires) or software (XON/XOFF - 3 wires)
#handshake = software

# If defined (not commented out by '#') it will quit Gnokii anytime
# when DCD line will drop.
#require_dcd = 1

# If you are using a bluetooth connection, you can specify the rfcomm
# channel number here. Default value is 1.
#rfcomm_channel = 1

# There may happen various timeouts during the communication with the phone.
# This parameter enables the retransmission policy. Ie. if the phone doesn't
# respond, we send the frame again. This happend mainly with the older
# phones. You may want to enable it when you see mysterious timeouts.
# Be very carefull with this option. It is suspected to cause phone breakage
# with new DCT4 phones (like Nokia 6100). By default it is switched off
# (sm_retry = 0)
#sm_retry = 1

# Run the specified script(s) right after opening and initializing the device
# and before any communucation (right before closing for disconnect_script).
# You may find handy to use it to connect your modem to SMS Center
# when using BIP or CIMD protocols
# Non-absolute path is relative to the specific directory where gnokii is run!
#connect_script = /absolute/path/to/gnokii/Docs/sample/cimd-connect
#disconnect_script =

# When sending SMS you can experience timeouts. This is the feature of the
# overloaded SMSCs. The phones waits for the response from the SMSC confirming
# that it received the short message. When the SMSC is DoSed with many requests
# it will take more time to get the response. Adjust it to your needs. The
# value is given in seconds to wait. Defaults to 10 seconds. Set to 0 to wait
# forever.
smsc_timeout = 10

# Set bindir to point to the location of the various gnokiid binaries.
# In particular ensure that mgnokiidev is in this location, with
# permissions 4750, owned by root, group gnokii.  Ensure you
# are in the gnokii group and that the group exists...
[gnokiid]
bindir = /usr/sbin/

# Any entries in the following two sections will be set as environment
# variables when running the scripts.
# Handy for use for $VAR substitutions in your chat(8) script.
[connect_script]
TELEPHONE = 12345678
[disconnect_script]


# The following parameters control how libgnokii handle the debugging messages.
# Currently there are three categories: "debug" controls the libgnokii
# normal debug output, "rlpdebug" controls the debug output of the RLP
# subsystem, and "xdebug" is used by the xgnokii or smsd.

[logging]

# where to log the debug output (on: stderr)
debug = on

# where to log the rlp debug output (on: stderr)
rlpdebug = off

# where to log X debug output (on: stderr)
xdebug = off
GNOKII Version 0.6.8
LOG: debug mask is 0x1
phone instance config:
model: AT
port_device: /dev/ircomm0
connection_type: 4
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script: 
disconnect_script: 
rfcomm_cn: 1
sm_retry: off
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ircomm0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d                                     | ATZ             
write: [ATZ<cr>]
read : [ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000a
02 41 54 5a 0d 0d 0a 4f 4b 0d                   |  ATZ   OK       
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d                                  | ATE1            
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d                |  ATE1   OK      
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d                   | AT+CMEE=1       
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0010
02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d |  AT+CMEE=1   OK 
Received message type 00
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM         
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>Nokia 6021<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x001c
02 41 54 2b 43 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMM   Nokia
20 36 30 32 31 0d 0a 0d 0a 4f 4b 0d             |  6021    OK     
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 49 0d                         | AT+CGMI         
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMI   Nokia
0d 0a 0d 0a 4f 4b 0d                            |     OK          
Received message type 06
Message sent: 0x5e / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?        
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x5e / 0x0023
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 50 43 43 50 34 33 37 22 0d 0a 0d 0a | S: "PCCP437"    
4f 4b 0d                                        | OK              
Received message type 5e
Initialisation completed
Message sent: 0x5e / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>+CSCS: 
("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX")<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x5e / 0x004f
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 53 |  AT+CSCS=?   +CS
43 53 3a 20 28 22 55 43 53 32 22 2c 22 47 53 4d | CS: ("UCS2","GSM
22 2c 22 50 43 43 50 34 33 37 22 2c 22 50 43 44 | ","PCCP437","PCD
4e 22 2c 22 49 52 41 22 2c 22 38 38 35 39 2d 31 | N","IRA","8859-1
22 2c 22 48 45 58 22 29 0d 0a 0d 0a 4f 4b 0d    | ","HEX")    OK  
Received message type 5e
Message sent: 0x00 / 0x000f
41 54 2b 43 53 43 53 3d 22 55 43 53 32 22 0d    | AT+CSCS="UCS2"  
write: [AT+CSCS="UCS2"<cr>]
read : [AT+CSCS="UCS2"<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0015
02 41 54 2b 43 53 43 53 3d 22 55 43 53 32 22 0d |  AT+CSCS="UCS2" 
0d 0a 4f 4b 0d                                  |   OK            
Received message type 00
Message sent: 0x00 / 0x000d
41 54 2b 43 50 42 53 3d 22 4d 45 22 0d          | AT+CPBS="ME"    
write: [AT+CPBS="ME"<cr>]
read : [AT+CPBS="ME"<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0013
02 41 54 2b 43 50 42 53 3d 22 4d 45 22 0d 0d 0a |  AT+CPBS="ME"   
4f 4b 0d                                        | OK              
Received message type 00
Message sent: 0x62 / 0x000a
41 54 2b 43 50 42 52 3d 3f 0d                   | AT+CPBR=?       
write: [AT+CPBR=?<cr>]
read : [AT+CPBR=?<cr><cr><lf>+CPBR: (1-500),48,50<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x62 / 0x0028
02 41 54 2b 43 50 42 52 3d 3f 0d 0d 0a 2b 43 50 |  AT+CPBR=?   +CP
42 52 3a 20 28 31 2d 35 30 30 29 2c 34 38 2c 35 | BR: (1-500),48,5
30 0d 0a 0d 0a 4f 4b 0d                         | 0    OK         
Received message type 62
Message sent: 0x0d / 0x000a
41 54 2b 43 50 42 52 3d 32 0d                   | AT+CPBR=2       
write: [AT+CPBR=2<cr>]
read : [AT+CPBR=2<cr><cr><lf>OK<cr><lf>]
Message received: 0x0d / 0x0010
02 41 54 2b 43 50 42 52 3d 32 0d 0d 0a 4f 4b 0d |  AT+CPBR=2   OK 
Received message type 0d
Libsafe version 2.0.16
Detected an attempt to write across stack boundary.
Terminating /usr/lib/gnokii/gnokii.
    uid=1000  euid=1000  pid=8428
Call stack:
    0xb7f8b41c  /lib/libsafe.so.2.0.16
    0xb7f8c1fa  /lib/libsafe.so.2.0.16
    0xb7f2305c  /usr/lib/libgnokii.so.2.0.3
    0xb7f44bd7  /usr/lib/libgnokii.so.2.0.3
    0xb7f459f2  /usr/lib/libgnokii.so.2.0.3
    0xb7f489d0  /usr/lib/libgnokii.so.2.0.3
    0xb7f469a6  /usr/lib/libgnokii.so.2.0.3
    0xb7f11aa7  /usr/lib/libgnokii.so.2.0.3
    0x80533fa   /usr/lib/gnokii/gnokii
    0x805622a   /usr/lib/gnokii/gnokii
    0xb7cf4eab  /lib/tls/i686/cmov/libc-2.3.5.so
overflow caused by sprintf()
Sent email to [EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

Reply via email to