diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2017-04-16 01:15:37 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2017-04-16 01:15:37 +0000 |
| commit | ea5e026a0d10c52e1e5e9fb2dc446fed21552919 (patch) | |
| tree | 852da1f46bcdb0e0225cef30b38df72431883aa2 /contrib | |
| parent | a07d9e9af4c3c1b77118463c9dddcea1183faa11 (diff) | |
Notes
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/ipfilter/tools/ipf_y.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/ipfilter/tools/ipf_y.y b/contrib/ipfilter/tools/ipf_y.y index 7feb83e15b8f3..fc48844343472 100644 --- a/contrib/ipfilter/tools/ipf_y.y +++ b/contrib/ipfilter/tools/ipf_y.y @@ -2195,6 +2195,10 @@ char *phrase; for (i = 0, s = strtok(phrase, " \r\n\t"); s != NULL; s = strtok(NULL, " \r\n\t"), i++) { fb = reallocarray(fb, i / 4 + 1, sizeof(*fb)); + if (fb == NULL) { + perror("memory allocation error at __LINE__ in __FUNCTION__ in __FILE"); + abort(); + } l = (u_32_t)strtol(s, NULL, 0); switch (i & 3) { |
