]> granicus.if.org Git - gc/commit
Fix hbp overflow in GC_install_counts
authorIvan Maidanski <ivmai@mail.ru>
Sun, 4 Nov 2018 08:59:11 +0000 (11:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 3 Dec 2018 22:11:16 +0000 (01:11 +0300)
commit652612e46485188a6fd05f1c487b98dfc3371a89
tree816874e5ddadce1387e9406f6995765198ca2745
parenta357ac7ed2e4ba656836454d4f2613d08ed3063e
Fix hbp overflow in GC_install_counts
(a cherry-pick of commits 6a32bb436a6d79 from 'master')

Issue #245 (bdwgc).

The overflow resulted in an infinite loop in GC_install_counts on Win32.

* headers.c (GC_install_counts): If hbp+=BOTTOM_SZ overflow is expected
then break the first loop; add comment.
headers.c