Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-0]: src/external/historical/nawk/dist Pull up following revisio...
details: https://anonhg.NetBSD.org/src/rev/6ec1290e0087
branches: netbsd-6-0
changeset: 774772:6ec1290e0087
user: riz <riz%NetBSD.org@localhost>
date: Thu Mar 14 15:55:10 2013 +0000
description:
Pull up following revision(s) (requested by cheusov in ticket #836):
external/historical/nawk/dist/tran.c: revision 1.8
PR/47553: Aleksev Cheusov: awk segfault: NULL dereference.
diffstat:
external/historical/nawk/dist/tran.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dcebd1d5ae86 -r 6ec1290e0087 external/historical/nawk/dist/tran.c
--- a/external/historical/nawk/dist/tran.c Mon Feb 11 20:43:01 2013 +0000
+++ b/external/historical/nawk/dist/tran.c Thu Mar 14 15:55:10 2013 +0000
@@ -344,7 +344,7 @@
donefld = 0; /* mark $1... invalid */
donerec = 1;
}
- t = tostring(s); /* in case it's self-assign */
+ t = s ? tostring(s) : tostring(""); /* in case it's self-assign */
if (freeable(vp))
xfree(vp->sval);
vp->tval &= ~NUM;
Home |
Main Index |
Thread Index |
Old Index