Module Name: src Committed By: rin Date: Sun Nov 19 12:26:25 UTC 2017
Modified Files: src/external/bsd/tre/dist/lib: tre-compile.c Log Message: Check error code from allocating function, from musl libc: https://git.musl-libc.org/cgit/musl/commit/src/regex/regcomp.c?id=4260dfe1ecc43d92d1e6d30daa0f22bd746d1740 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/bsd/tre/dist/lib/tre-compile.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/tre/dist/lib/tre-compile.c diff -u src/external/bsd/tre/dist/lib/tre-compile.c:1.5 src/external/bsd/tre/dist/lib/tre-compile.c:1.6 --- src/external/bsd/tre/dist/lib/tre-compile.c:1.5 Sun Nov 19 12:13:14 2017 +++ src/external/bsd/tre/dist/lib/tre-compile.c Sun Nov 19 12:26:25 2017 @@ -594,7 +594,8 @@ tre_add_tags(tre_mem_t mem, tre_stack_t { status = tre_add_tag_right(mem, left, tag_left); tnfa->tag_directions[tag_left] = TRE_TAG_MAXIMIZE; - status = tre_add_tag_right(mem, right, tag_right); + if (status == REG_OK) + status = tre_add_tag_right(mem, right, tag_right); tnfa->tag_directions[tag_right] = TRE_TAG_MAXIMIZE; } DPRINT((" num_tags += 2\n"));