Module Name: src Committed By: rin Date: Sun Nov 19 12:35:39 UTC 2017
Modified Files: src/external/bsd/tre/dist/lib: tre-compile.c Log Message: Fix use of uninitialized value, taken from musl libc: https://git.musl-libc.org/cgit/musl/commit/src/regex/regcomp.c?id=51eeb6ebc94d965768143c45e9f39b0a7998bdbd To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 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.6 src/external/bsd/tre/dist/lib/tre-compile.c:1.7 --- src/external/bsd/tre/dist/lib/tre-compile.c:1.6 Sun Nov 19 12:26:25 2017 +++ src/external/bsd/tre/dist/lib/tre-compile.c Sun Nov 19 12:35:39 2017 @@ -61,6 +61,7 @@ tre_add_tag_left(tre_mem_t mem, tre_ast_ c->right->firstpos = NULL; c->right->lastpos = NULL; c->right->num_tags = 0; + c->right->num_submatches = 0; node->obj = c; node->type = CATENATION; return REG_OK; @@ -93,6 +94,7 @@ tre_add_tag_right(tre_mem_t mem, tre_ast c->left->firstpos = NULL; c->left->lastpos = NULL; c->left->num_tags = 0; + c->left->num_submatches = 0; node->obj = c; node->type = CATENATION; return REG_OK;