]> git.puffer.fish Git - mirror/frr.git/commit
lib: Update hash.h documentation to warn of a possible crash 10541/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 1 Dec 2021 22:03:38 +0000 (17:03 -0500)
committermergify-bot <noreply@mergify.com>
Wed, 9 Feb 2022 10:46:33 +0000 (10:46 +0000)
commit21ab672e6cf97d2849e51792918db1e9c88240e5
treefb130d0b82f82c06cf8b05a9b0f16803f50c6153
parentc32c32c931b96531acdb25fd1fc37cd3b0a2f42e
lib: Update hash.h documentation to warn of a possible crash

Multiple deletions from the hash_walk or hash_iteration calls
during a single invocation of the passed in function can and
will cause the program to crash.  Warn against doing such a
thing.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 341743ac5b2a11fe27416a2b34cc470f36ea4d17)
lib/hash.h