Menu

#2 perl API problem with len 0

open
nobody
None
5
2003-07-08
2003-07-08
No

I'm using perl API for OpenIsis 0.9.0.

When using some of data files from ISIS, I
occasaionally get junk in perl variables. Doing some
research, I managed to find a pattern: it seems that
some of fields in my ISIS file (101 to be exact) have
zero length. openisis binary works nice: it displays
field 101 and no value, but perl API seems to take
several more bytes from surrounding memory (or
something, I'm not really sure).

I created sample database with 5 records of which only
records 3 and 5 have valid value in field 101. All
other have zero value, as inspected by ./openisis -v 8
-db ./bug/LIBRI/LIBRI

11. 0 TAG 0x00000065 = 101
11. 1 'POS ^^<
11. 2 LEN 0x00000000 = 0

Database is available at:
http://mjesec.ffzg.hr/~dpavlin/openisis-0.9.0-bug.tar.gz

Discussion


Log in to post a comment.