Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ly_common.c
Original file line number Diff line number Diff line change
@@ -325,6 +325,7 @@ ly_utf8_and_equal(const char *input, int bytes, ...)

/* compare each byte */
if (((uint8_t)input[i] & and) != (uint8_t)byte) {
va_end(ap);
return 0;
}
}
@@ -355,8 +356,10 @@ ly_utf8_less(const char *input, int bytes, ...)

/* compare until bytes differ */
if ((uint8_t)input[i] > (uint8_t)byte) {
va_end(ap);
return 0;
} else if ((uint8_t)input[i] < (uint8_t)byte) {
va_end(ap);
return 1;
}
}
@@ -388,8 +391,10 @@ ly_utf8_greater(const char *input, int bytes, ...)

/* compare until bytes differ */
if ((uint8_t)input[i] > (uint8_t)byte) {
va_end(ap);
return 1;
} else if ((uint8_t)input[i] < (uint8_t)byte) {
va_end(ap);
return 0;
}
}
1 change: 1 addition & 0 deletions src/parser_lyb.c
Original file line number Diff line number Diff line change
@@ -773,6 +773,7 @@ lyb_parse_schema_hash(struct lyd_lyb_ctx *lybctx, const struct lysc_node *sparen
LOGERR(lybctx->lybctx->ctx, LY_EINT, "Failed to find matching hash for a top-level node from \"%s\".",
mod->name);
} else {
assert(sparent);
LOGERR(lybctx->lybctx->ctx, LY_EINT, "Failed to find matching hash for a child node of \"%s\".",
sparent->name);
}
1 change: 1 addition & 0 deletions src/parser_yin.c
Original file line number Diff line number Diff line change
@@ -396,6 +396,7 @@ subelems_allocator(struct lysp_yin_ctx *ctx, size_t count, struct lysp_node *par
return LY_SUCCESS;

mem_err:
va_end(ap);
subelems_deallocator(count, *result);
LOGMEM(ctx->xmlctx->ctx);
return LY_EMEM;
1 change: 1 addition & 0 deletions src/schema_compile_node.c
Original file line number Diff line number Diff line change
@@ -1229,6 +1229,7 @@ lys_compile_pattern_chblocks_xmlschema2perl(const struct ly_ctx *ctx, const char
++idx;
}
if ((perl_regex[idx2] == ']') && (!idx2 || (perl_regex[idx2 - 1] != '\\'))) {
assert(idx);
--idx;
}
}
1 change: 1 addition & 0 deletions src/xpath.c
Original file line number Diff line number Diff line change
@@ -8256,6 +8256,7 @@ eval_name_test_with_predicate(const struct lyxp_expr *exp, uint32_t *tok_idx, en

if (set->used) {
i = set->used;
assert(i);
do {
--i;
if (set->val.scnodes[i].in_ctx > LYXP_SET_SCNODE_ATOM_NODE) {