| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
seed is explicitly set.
OK millert@
|
| |
|
|
|
| |
While here, add proper bounds checking for the partial match case
in refldbld() too and check strlcpy() return values throughout.
|
| |
|
|
|
| |
Implements the gensub(), systime() and strftime() functions for
greater gawk compatibility.
|
| |
|
|
|
|
|
|
| |
Unlike upstream awk, ours has historically allowed unescaped '/'
inside a bracket expression for compatibility with other awk
implementations but the check was too simple-minded. This improves
the matching to allow things like /[]/]/, /[^]// and '/[abc[:digit:]/@#]/'
To enable strict POSIX compliance, set POSIXLY_CORRECT.
|
| |
|
|
| |
This matches upstream awk and OpenBSD only implements LC_CTYPE anyway.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Add test in maketab.c to prevent generating a proctab entry for
YYSTYPE_IS_DEFINED.
|
| |
|
|
|
| |
Disallow '$' in printf formats
Added some casts to silence warnings on debugging printfs.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to report, so make sure errno is set to zero before invoking a
function to check so that a previous such errno value won't result
in a false positive. This could happen simply due to input line fields
that looked enough like floating-point input to trigger ERANGE.
Problem noted by Jordan Geoghegan (jordan (at) geoghegan.ca), with
clue from Ze' Loff (zeloff (at) zeloff.org)
ok millert@
|
| |
|
|
| |
This was the last awk release before the move to github.
|
| |
|
|
|
|
| |
clause, this was poorly documented as "immediately", and "after the last line"
which is inaccurate there are other causes. Explain this a bit better.
ok millert claudio
|
| |
|
|
| |
OK millert@
|
| |
|
|
| |
OK millert@
|
| | |
|
| |
|
|
|
| |
for BEL since that is what lex.c uses, though we could safely use
'\a' there instead. OK martijn@
|
| |
|
|
|
| |
provides retry on short-write file descriptors.
ok florian, previous versions seen by millert
|
| |
|
|
|
|
| |
(amazing to me that the posix name was chosen though it specifically
collides with code Kernighan maintained since the V7).
ok millert
|
| |
|
|
|
|
| |
From Ori Bernstein.
ok deraadt
|
| |
|
|
|
|
|
| |
use of uninitialized variables after calls to
FATAL().
ok millert@ guenther@
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
| |
okay millert@
|
| |
|
|
|
| |
programs will build even without a make depend first.
okay tb@ millert@
|
| |
|
|
| |
malloc does not return zero-filled data. OK tb@
|
| |
|
|
|
|
| |
Diff from Matthew Martin, rewieved by deraadt@ and me.
ok deraadt@, millert@
|
| |
|
|
| |
setlocale(), not before. Not just here, but probably everywhere?
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
awk -safe was introduced back in 1997 to stop awk from doing file output,
execute commands or access the environment. The lexer rejected programs
when it saw awk commands that would write, exec or env. Beyond that,
it wasn't safe from write/exec/env during program execution.
With pledge "stdio rpath", the kernel is now enforcing the awk -safe
mode restrictions at runtime (other than env).
Based on a diff by deraadt@
ok deraadt@ beck@
|
| |
|
|
| |
In some cases, do additional cleanup in the immediate vicinity.
|
| |
|
|
|
|
|
|
|
| |
also affected incorrectly. Noticed by Stephane Chazelas. This reverts
the return value of srand() to the old (not very useful) behaviour.
This also allows toggling rand() to strong/weak based upon whether
srand() is called without/with an argument.
Long discussion and work with millert
ok beck
|
| |
|
|
|
|
| |
Context extraction didn't handle this case and showed uninitialized memory.
ok tobias, miod
|
| | |
|
| |
|
|
| |
ok millert doug
|
| | |
|
| |
|
|
|
|
| |
subsystem out of strong random mode. No effective change from what we've
been doing for a while. Result is it becomes 1 line of code.
ok millert
|
| |
|
|
| |
From Jeremy Devenport
|
| |
|
|
|
|
|
| |
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
| |
|
|
|
|
|
| |
we don;t support next to the posix compat blurb, in order to make things a bit
clearer; this also makes the text more concise;
ok millert schwarze sobrado
|