Skip to content

Commit

Permalink
term: fix use after free
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova committed Nov 12, 2024
1 parent 3a767f5 commit c3bd771
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/vere/io/term.c
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,10 @@ u3_term_wall(u3_noun wol)
}

static void
_born_bail_cb(u3_ovum* egg_u, u3_ovum_news new_e) {}
_born_bail_cb(u3_ovum *egg_u, u3_noun stacktraces) {
u3z(stacktraces);
u3_ovum_free(egg_u);
}

/* _term_io_talk():
*/
Expand All @@ -1610,7 +1613,7 @@ _term_io_talk(u3_auto* car_u)
//
{
cad = u3nc(c3__born, u3_nul);
u3_ovum* egg_u = u3_auto_plan(car_u, u3_ovum_init(0, c3__d, wir, cad));
u3_ovum* egg_u = u3_auto_plan(car_u, u3_ovum_init(0, c3__d, u3k(wir), cad));
u3z(egg_u->pin_u.lab);
egg_u->pin_u.lab = u3_blip;

Expand Down

0 comments on commit c3bd771

Please sign in to comment.