mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 1391556 - fix incorrect out of bound check. r=jwwang
MozReview-Commit-ID: JytNgl6bqCX --HG-- extra : rebase_source : 53ef9acf40d5c882342488c6ef1abf6bddae0542
This commit is contained in:
parent
1e1b1b1bf2
commit
ddd6436e6a
@ -151,7 +151,7 @@ static LogState *createLogState()
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < sizeof(openLogTable); i++) {
|
||||
for (i = 0; i < MAX_OPEN_LOGS; i++) {
|
||||
if (openLogTable[i] == NULL) {
|
||||
openLogTable[i] = calloc(1, sizeof(LogState));
|
||||
openLogTable[i]->fakeFd = FAKE_FD_BASE + i;
|
||||
|
Loading…
Reference in New Issue
Block a user