IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

#777 closed defect (fixed)

psMetadataIteratorAlloc produces SEGV when regex != NULL

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

Description

#0 0x00432b70 in regcomp () from /lib/tls/libc.so.6
#1 0x00d78fef in psMetadataIteratorAlloc (md=0x8dd022c, location=0,

regex=0x81ae786 "-chip$") at psMetadata.c:924

This is because regcomp requires a pointer to an allocated buffer, instead of NULL.

Change History (1)

comment:1 by Paul Price, 20 years ago

Resolution: fixed
Status: newclosed

Fixed by adding psAlloc for newIter->regex, and refactoring code in
psMetadataIteratorAlloc.

No tests should break, because no tests call psMetadataIteratorAlloc with regex
!= NULL (!!!).

Note: See TracTickets for help on using tickets.