Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170553262
D26509.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26509.diff
View Options
Index: head/contrib/one-true-awk/awk.h
===================================================================
--- head/contrib/one-true-awk/awk.h
+++ head/contrib/one-true-awk/awk.h
@@ -218,6 +218,8 @@
#define NCHARS (256+3) /* 256 handles 8-bit chars; 128 does 7-bit */
/* watch out in match(), etc. */
#define NSTATES 32
+#define HAT (NCHARS+2) /* matches ^ in regular expr */
+ /* NCHARS is 2**n */
typedef struct rrow {
long ltype; /* long avoids pointer warnings on 64-bit */
@@ -230,7 +232,7 @@
} rrow;
typedef struct fa {
- uschar gototab[NSTATES][NCHARS];
+ uschar gototab[NSTATES][HAT + 1];
uschar out[NSTATES];
uschar *restr;
int *posns[NSTATES];
Index: head/contrib/one-true-awk/b.c
===================================================================
--- head/contrib/one-true-awk/b.c
+++ head/contrib/one-true-awk/b.c
@@ -37,8 +37,6 @@
#include "awk.h"
#include "ytab.h"
-#define HAT (NCHARS+2) /* matches ^ in regular expr */
- /* NCHARS is 2**n */
#define MAXLIN 22
#define type(v) (v)->nobj /* badly overloaded here */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 6, 9:23 AM (19 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38398106
Default Alt Text
D26509.diff (1 KB)
Attached To
Mode
D26509: awk: Fix subobject out-of-bounds access
Attached
Detach File
Event Timeline
Log In to Comment