numeric conversion bug fix

This commit is contained in:
kzak 2006-07-10 07:43:09 +00:00
parent c4831eb22b
commit 378468e41f
2 changed files with 23 additions and 1 deletions

16
gawk-3.1.5-numflags.patch Normal file
View File

@ -0,0 +1,16 @@
Tue Jul 4 22:43:05 2006 Arnold D. Robbins <arnold@skeeve.com>
* eval.c (interpret): Node_assign_concat case: Turn off NUMBER and NUMCUR
flags in result. Sheesh. Thanks to <Heiner.Marxen@DrB.Insel.DE> for finding
the problem.
--- gawk-3.1.5/eval.c.numflags 2006-07-10 09:36:26.000000000 +0200
+++ gawk-3.1.5/eval.c 2006-07-10 09:36:41.000000000 +0200
@@ -1193,6 +1193,7 @@
unref(*lhs);
*lhs = make_str_node(nval, l->stlen + r->stlen, ALREADY_MALLOCED);
}
+ (*lhs)->flags &= ~(NUMCUR|NUMBER);
free_temp(r);
if (after_assign)

View File

@ -1,7 +1,7 @@
Summary: The GNU version of the awk text processing utility.
Name: gawk
Version: 3.1.5
Release: 8
Release: 9
License: GPL
Group: Applications/Text
Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2
@ -23,6 +23,8 @@ Patch6: gawk-3.1.5-wconcat.patch
Patch7: gawk-3.1.5-internal.patch
# 194214 - gawk coredumps on syntax error
Patch8: gawk-3.1.5-syntaxerror.patch
# http://lists.gnu.org/archive/html/bug-gnu-utils/2006-07/msg00004.html
Patch9: gawk-3.1.5-numflags.patch
%description
The gawk packages contains the GNU version of awk, a text processing
@ -90,6 +92,10 @@ fi
%{_datadir}/awk
%changelog
* Mon Jul 10 2006 Karel Zak <kzak@redhat.com> 3.1.5-9
- fix numeric conversion problem (patch by Aharon Robbins)
http://lists.gnu.org/archive/html/bug-gnu-utils/2006-07/msg00004.html
* Fri Jun 23 2006 Karel Zak <kzak@redhat.com> 3.1.5-8
- fix #194214 - gawk coredumps on syntax error (patch by Aharon Robbins)