]> The Tcpdump Group git mirrors - tcpdump/commit
ESP: Add a workaround to a "use-of-uninitialized-value"
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 12 Aug 2022 14:43:41 +0000 (16:43 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 12 Aug 2022 14:54:37 +0000 (16:54 +0200)
commit47a7e20a4849ad22b5bbb8f978fd8dc16e7330cc
tree77efae56c34f5742a37b0f92354a28c73cdba9fc
parent835bf2c11ca8035e62ac45afeb1d7693fa1c9b85
ESP: Add a workaround to a "use-of-uninitialized-value"

Found with clang, CFLAGS=-fsanitize=memory.

Fix GitHub issues #848 and #849.

The problem is that for some unknown reason the pt buffer is not
initialized after EVP_DecryptUpdate() call, no error, in:

print-esp.c:260:        if (!EVP_DecryptUpdate(ctx, pt, &len, ct, ctlen)) {
print-esp.c