We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9defefa commit 121ab15Copy full SHA for 121ab15
libyasm/section.c
@@ -629,6 +629,10 @@ yasm_bytecode *
629
yasm_section_bcs_append(yasm_section *sect, yasm_bytecode *bc)
630
{
631
if (bc) {
632
+ if (!sect) {
633
+ yasm_error_set(YASM_ERROR_VALUE, "Attempt to append bytecode to a NULL section or with a NULL bytecode");
634
+ return NULL;
635
+ }
636
if (bc->callback) {
637
bc->section = sect; /* record parent section */
638
STAILQ_INSERT_TAIL(§->bcs, bc, link);
0 commit comments