Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178275513
D39573.1796400005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
571 B
Referenced Files
None
Subscribers
None
D39573.1796400005.diff
View Options
Index: contrib/one-true-awk/run.c
===================================================================
--- contrib/one-true-awk/run.c
+++ contrib/one-true-awk/run.c
@@ -858,7 +858,7 @@
if (fmtwd < 0)
fmtwd = -fmtwd;
adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format2");
- for (t = fmt; (*t++ = *s) != '\0'; s++) {
+ for (t = fmt; *(s+1) != '\0' && (*t++ = *s) != '\0'; s++) {
if (!adjbuf(&fmt, &fmtsz, MAXNUMSIZE+1+t-fmt, recsize, &t, "format3"))
FATAL("format item %.30s... ran format() out of memory", os);
/* Ignore size specifiers */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 4:00 PM (5 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42209824
Default Alt Text
D39573.1796400005.diff (571 B)
Attached To
Mode
D39573: awk: avoid walking off end of some invalid format strings
Attached
Detach File
Event Timeline