ALTAIR: Extend disk buffer by 1 byte to avoid array overruns (COVERITY)
This commit is contained in:
parent
44deef9447
commit
c169b8dd79
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ int32 cur_sect[9] = {0, 0, 0, 0, 0, 0, 0, 0, 377};
|
||||||
int32 cur_byte[9] = {0, 0, 0, 0, 0, 0, 0, 0, 377};
|
int32 cur_byte[9] = {0, 0, 0, 0, 0, 0, 0, 0, 377};
|
||||||
int32 cur_flags[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
|
int32 cur_flags[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
|
|
||||||
char dskbuf[137]; /* Data Buffer */
|
char dskbuf[138]; /* Data Buffer */
|
||||||
int32 dirty = 0; /* 1 when buffer has unwritten data in it */
|
int32 dirty = 0; /* 1 when buffer has unwritten data in it */
|
||||||
UNIT *dptr; /* fileref to write dirty buffer to */
|
UNIT *dptr; /* fileref to write dirty buffer to */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue