This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #130530]: HP-UX assertion failure
authorKarl Williamson <khw@cpan.org>
Mon, 9 Jan 2017 22:40:54 +0000 (15:40 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 11 Jan 2017 21:57:06 +0000 (14:57 -0700)
commitc1b4bd97fd29c9a704ae8c30e2e44f1ab403d963
tree27c92d8f63a9f168af330dc04977c28a41b2bb47
parent871e132ced1b7ede7c74b978b6ed8187f64b268c
PATCH: [perl #130530]: HP-UX assertion failure

This was introduced in a1a5ec35e6a3df0994b103aadb28a8c1a3a278da, and was
due to a thinko on my part.  Zefram figured it out.

A macro evaluating to a string constant returns an instance of that
constant.  Compilers are free to collapse all instances into a single
one (which saves space), or to have multiple copies.  The code was
assuming the former, and HP-UX cc doesn't.

The passed size also was one byte larger than it should have been.
regcomp.c