Re: segfault in glib-mkenums
- From: <timj localhost>
- To: Max Horn <max quendi de>
- Cc: Gtk Developers <gtk-devel-list gnome org>
- Subject: Re: segfault in glib-mkenums
- Date: Sat, 15 Sep 2001 07:04:03 -0700 (PDT)
On Sat, 15 Sep 2001, Max Horn wrote:
> A work around for the crash in glib-mkenums, that I believe should
> work on other OSes, too, and will even speed up glib-mkenums a bit is
> to change the three occurences of
>
> while (m@/\*([^*]|\*[^/*])*\**$ x) {
> my $new;
> defined ($new = <>) || die "Unmatched comment in $ARGV";
> $_ .= $new;
> }
>
> to
>
> while (m@/\*([^*]|\*[^/*])*\**$ x) {
> my $new;
> defined ($new = <>) || die "Unmatched comment in $ARGV";
> next unless ($new =~ m \*/$@);
> $_ .= $new;
> }
erk, this isn't really a suitable solution, we have other scripts that
rely on being able to parse multi line comments. the correct
way to handle this is really updating perl and if that new version still breaks,
report a bug against perl to get this fixed.
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]