mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
5d7a320705
Iterator::NextEntry() miscomputes |entryLimit|. This doesn't matter in non-chaos mode because we'll always find a live entry before hitting that limit. But it does matter in chaos mode because it means we don't wrap around when we should. It's clear how this mistake was made -- the code from Enumerate() was copied. In Enumerate() |mEntryStore| and |entryAddr| are the same when |entryLimit| is computed, so you can use them interchangeably. But in NextEntry() |mEntryAddr| will have moved past |mEntryStore|, so you have to use |mEntryStore|. I changed both functions in the same way to keep the correspondence between them obvious. |
||
---|---|---|
.. | ||
base | ||
build | ||
components | ||
doc | ||
ds | ||
glue | ||
idl-parser | ||
io | ||
libxpcomrt | ||
libxpt/xptcall | ||
reflect | ||
string | ||
system | ||
tests | ||
threads | ||
typelib | ||
windbgdlg | ||
xpidl | ||
Makefile.in | ||
moz.build | ||
xpcom-config.h.in | ||
xpcom-private.h.in |