]> granicus.if.org Git - json-c/commit
Prevent division by zero in linkhash.
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 4 May 2020 17:46:45 +0000 (19:46 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 4 May 2020 17:46:45 +0000 (19:46 +0200)
commit77d935b7ae7871a1940cd827e850e6063044ec45
tree6c0fd76fa0804eb0b3743ed46296002b95f38934
parent099016b7e8d70a6d5dd814e788bba08d33d48426
Prevent division by zero in linkhash.

If a linkhash with a size of zero is created, then modulo operations
are prone to division by zero operations.

Purely protective measure against bad usage.
linkhash.c