Mercurial > hg > index.cgi
view .hgignore @ 530:65c2085e0398
Don't rely on undefined memory before start of instab
When encountering a symbol on a line by itself, cl->insn was used to index
into the instab array. Unfortunately, in that case, cl->insn will be -1
which will refer to memory before the start of instab. Depending on the
compiler and linker, that could be anything.
This would only have a visible effect on the OS9 target which has separate
data and code address counters. On other targets, the two counters are kept
in sync.
This patch should short circuit that unfortunate code issue.
author | William Astle <lost@l-w.ca> |
---|---|
date | Wed, 09 Mar 2022 15:56:03 -0700 |
parents | 5b8871fd7503 |
children | 5f10e1913d1a |
line wrap: on
line source
\.exe$ \.o$ \.d$ \.a$ ~$ \.orig$ /lwbasic$ /lwlink$ /lwobjdump$ /lwar$ /lwasm$ /lwcc/lwcc$ /lwcc/lwcc-cpp$ /lwcc/lwcc-cc # for windows \.suo$ \.sdf$ \.opensdf$ \Debug$ \Release$