Bugzilla – Bug 239954
simh-3.3_1-38: array subscript is above array bounds
Last modified: 2007-02-02 09:19:49 UTC
I just tried to compile package simh-3.3_1-38 with the new GNU compiler version 4.3 snapshot 20070126 The compiler said ALTAIR/altair_dsk.c:333: warning: array subscript is above array bounds The source code is if (cur_byte[cur_disk] > 136) { i = cur_byte[cur_disk]; dskbuf[i] = data & 0xFF; but char dskbuf[137]; /* Data Buffer */ Suggest code rework.
Feel free to close as duplicate of Bug #240922.
*** This bug has been marked as a duplicate of bug 240922 ***