Skip to content

Commit 52fb10a

Browse files
committed
src/tree_data_common.c: coveritx fix - out-of-bounds access
1 parent cab77f5 commit 52fb10a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tree_data_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ lyd_value_store(const struct ly_ctx *ctx, struct lyd_value *val, const struct ly
516516

517517
if (!value) {
518518
value = "";
519+
value_len = 0;
519520
}
520521
if (incomplete) {
521522
*incomplete = 0;

0 commit comments

Comments
 (0)