Skip to content

Commit

Permalink
Fix armpack null decode
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Sep 13, 2024
1 parent 325a4e5 commit a200db4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sources/iron_armpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ static void read_store() {
uint8_t flag = read_u8();
switch (flag) {
case 0xc0:
store_i32(0); // NULL
store_i32(0);
store_ptr_abs(NULL);
break;
case 0xc2:
store_u8(false);
Expand All @@ -324,7 +323,7 @@ static void read_store() {
}

void *armpack_decode(buffer_t *b) {
capacity = b->length * 4;
capacity = b->length * 3;
decoded = gc_alloc(capacity);
encoded = b->buffer;
di = 0;
Expand Down

0 comments on commit a200db4

Please sign in to comment.