mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-14 23:46:14 +00:00
conspage: Fix uninitialized memory read. (#242)
If `prior` was not set, then `priorpg` would be uninitialized and was subsequently used in a comparison. It should be initialized to `NULL`.
This commit is contained in:
parent
616b526516
commit
a42189fb8b
@ -132,6 +132,7 @@ struct conspage *next_conspage(void) {
|
||||
init_conspage(page2, 0); /* No next page */
|
||||
init_conspage(page1, LPAGE_from_68k(page2));
|
||||
|
||||
priorpg = NULL;
|
||||
prior = 0;
|
||||
for (pg = (struct conspage *)Addr68k_from_LPAGE(next = ListpDTD->dtd_nextpage);
|
||||
next && (next != CONSPAGE_LAST);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user