Package: python-iptcdata
Version: 1.0.2+libtool01-2
Severity: important

Accessing one of the data fields provided by the iptcdata python
module for image http://fop3.kyla.fi/~tazle/PICT6104.JPG causes
segfault.

Steps to reproduce:

1. Download the image linked above.
2. Execute python /usr/share/doc/python-iptcdata/examples/show_iptc.py 
PICT6104.JPG

Expected result:

show_iptc.py should print all IPTC metadata of the image

Actual result:

show_iptc.py prints only the first IPTC record, and segfaults on the second one

More information:

GDB backtrace and relevant variable information from another program
trying to access the title attribute of the ds object of the same
image, showing get_title trying to dereference a null pointer:

#0  0xb7a83e71 in get_title (self=0x827a320, closure=0x0)
    at 
/home/ianw/programs/libiptc/pkg-libiptcdata/build-area/libiptcdata-1.0.2+libtool01/./python/pyiptcdataset.c:67
#1  0x08088cbd in PyObject_GenericGetAttr ()
#2  0x080c69e9 in PyEval_EvalFrameEx ()
#3  0x080c89a5 in PyEval_EvalFrameEx ()
#4  0x080c89a5 in PyEval_EvalFrameEx ()
#5  0x080c89a5 in PyEval_EvalFrameEx ()
#6  0x080c89a5 in PyEval_EvalFrameEx ()
#7  0x080ca4b7 in PyEval_EvalCodeEx ()
#8  0x080ca607 in PyEval_EvalCode ()
#9  0x080e93a8 in PyRun_FileExFlags ()
#10 0x080e9649 in PyRun_SimpleFileExFlags ()
#11 0x08059233 in Py_Main ()
#12 0x080586f2 in main ()
(gdb) print self
$1 = (DataSetObject *) 0x827a320
(gdb) print self->ds
$2 = (IptcDataSet *) 0x82a9b08
(gdb) print self->ds->info
$3 = (const IptcTagInfo *) 0x0

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.7pryan (SMP w/2 CPU cores)
Locale: LANG=en_US, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-iptcdata depends on:
ii  libc6                  2.7-5             GNU C Library: Shared libraries
ii  libiptcdata0           1.0.2+libtool01-2 Library to parse IPTC metadata
ii  python                 2.5.2-1           An interactive high-level object-o

python-iptcdata recommends no packages.

python-iptcdata suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to