#200597 mp4h: Segfault on <set-var array[<array-size array />]=bla />

Package:
mp4h
Source:
mp4h
Description:
Macro processor for HTML documents
Submitter:
Martin Quinson
Date:
2010-04-22 00:00:03 UTC
Severity:
minor
#200597#5
Date:
2003-07-08 22:25:37 UTC
From:
To:
Hello,

I fail to find the perl unshift function in mp4h, and I cannot simulate
it using the example given in title (assigning to the last cell + 1).

Well, err. Looking again at the man page the perl function seems to be
called push. That's misleading, but should be because of legacy. Well
ok.

But I still send this bug repport because this does trigger a
segfault...

Bye, Mt.

#200597#10
Date:
2003-07-09 21:47:03 UTC
From:
To:
Hmmm I cannot reproduce this bug, but if the array variable was never
defined, <array-size array /> returns -1, which could then cause
trouble (but negative values are checked in <set-var>, so I do not see
how).  I have to investigate the rationale for such a return code,
a workaround may be to initialize your array variable in your file.

Denis