Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/tre/dist/lib Fix use of uninitialized value, ta...



details:   https://anonhg.NetBSD.org/src/rev/85a6454c0f9b
branches:  trunk
changeset: 827939:85a6454c0f9b
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Nov 19 12:35:39 2017 +0000

description:
Fix use of uninitialized value, taken from musl libc:
https://git.musl-libc.org/cgit/musl/commit/src/regex/regcomp.c?id=51eeb6ebc94d965768143c45e9f39b0a7998bdbd

diffstat:

 external/bsd/tre/dist/lib/tre-compile.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 3c79b2589cf2 -r 85a6454c0f9b external/bsd/tre/dist/lib/tre-compile.c
--- a/external/bsd/tre/dist/lib/tre-compile.c   Sun Nov 19 12:26:25 2017 +0000
+++ b/external/bsd/tre/dist/lib/tre-compile.c   Sun Nov 19 12:35:39 2017 +0000
@@ -61,6 +61,7 @@
   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 @@
   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;



Home | Main Index | Thread Index | Old Index