IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

#778 closed defect (fixed)

psMetadataGetAndIncrement fails with SEGV when iterating with a regex

Reported by: Paul Price Owned by: David.Robbins@…
Priority: high Milestone:
Component: types Version: unspecified
Severity: normal Keywords:
Cc:

Description

#0 0x004d37b3 in strlen () from /lib/tls/libc.so.6
#1 0x00515c1a in regexec () from /lib/tls/libc.so.6
#2 0x002ad85c in psMetadataGetAndIncrement (iterator=0x8ab7bdc)

at psMetadata.c:1011

The problem is in psMetadataGetAndIncrement:

(gdb) p ((psMetadataItem*)iter->cursor)->name
$2 = 0x0

Change History (1)

comment:1 by Paul Price, 20 years ago

Resolution: fixed
Status: newclosed

The name is referred to as follows:

((psMetadataItem*)iter->cursor->data)->name

i.e., the "data" was missing (cursor points to a psListItem, not the data itself).

Bug fixed. No tests should be broken, because no tests use psMetadataIterators
with a regex.

Note: See TracTickets for help on using tickets.