Mercurial > cpython-lru_cache-weakref
diff Objects/codeobject.c @ 39069:476cd83777f2 legacy-trunk
Fix uninitialized memory read reported by Valgrind when running doctest.
This could happen if size == 0.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Wed, 12 Jul 2006 05:27:46 +0000 |
| parents | a637c78bf119 |
| children | 6620a510e9a9 13d5e5f0e993 |
line wrap: on
line diff
--- a/Objects/codeobject.c Wed Jul 12 05:26:35 2006 +0000 +++ b/Objects/codeobject.c Wed Jul 12 05:27:46 2006 +0000 @@ -556,6 +556,7 @@ the line increments here, treating them as byte increments gets confusing, to say the least. */ + bounds->ap_lower = 0; while (size > 0) { if (addr + *p > lasti) break;
