Skip to content

Commit c549571

Browse files
magvjodavies
authored andcommitted
fix: typo in GetTable
The typo manifests most prominently as a double free, but it has other effects too.
1 parent bf24cec commit c549571

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

check/fixes.frm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4581,3 +4581,15 @@ Symbol x;
45814581
.end
45824582
assert succeeded?
45834583
*--#] PullReq691 :
4584+
*--#[ Issue808 :
4585+
#do i=0,9
4586+
Global E`i' = `i';
4587+
#enddo
4588+
.store
4589+
#do i=1,80
4590+
Global F1 = E{`i' % 10}*E2*E3*E4;
4591+
#enddo
4592+
.sort
4593+
.end
4594+
assert succeeded?
4595+
*--#] Issue808 :

sources/store.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3207,7 +3207,7 @@ RENUMBER GetTable(WORD expr, POSITION *position, WORD mode)
32073207
WCOPY(buffer, AS.Olduflags, AS.NumOldNumFactors);
32083208
M_free(AS.Olduflags, "uflags pointers");
32093209
}
3210-
AS.Oldvflags = buffer;
3210+
AS.Olduflags = buffer;
32113211

32123212
AS.NumOldNumFactors = capacity;
32133213
}

0 commit comments

Comments
 (0)