From f9ff4a203b8c155d51a208cadadb62f224fba715 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Mon, 1 Feb 2021 10:18:17 +1300 Subject: [PATCH] Ensure the size of the version field is 4 bytes A corrupted version field size can cause TNEFVersion to access outside of allocated memory. Check the version is the expected size and raise an error if not. Resolves: #86 Reported-by: jasperla --- lib/ytnef.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ytnef.c b/lib/ytnef.c index b148719..ffede44 100644 --- a/lib/ytnef.c +++ b/lib/ytnef.c @@ -335,6 +335,10 @@ int TNEFRendData STD_ARGLIST { int TNEFVersion STD_ARGLIST { WORD major; WORD minor; + if (size != 2 * sizeof(WORD)) { + printf("Incorrect size of version field, suspected corruption\n"); + return -1; + } minor = SwapWord((BYTE*)data, size); major = SwapWord((BYTE*)data + 2, size - 2); r> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/rpc.scm
AgeCommit message (Expand)Author
2023-04-21gnu: grpc-1.16.1: Correct input modifications....abseil-cpp is not part of the native-inputs but of the inputs. * gnu/packages/rpc.scm (grpc-1.16.1)[native-inputs]: Only replace protobuf. [inputs]: Replace abseil-cpp. Ricardo Wurmus
2023-04-21gnu: python-grpcio: Rebuild Cythonized source files....* gnu/packages/rpc.scm (python-grpcio)[source]: Delete generated cpp file. [build-system]: Use pyproject-build-system. [arguments]: Patch setup.py to add grpc headers to search path. [inputs]: Replace abseil-cpp with abseil-cpp-20211102.0; add grpc-for-python-grpcio. [native-inputs]: Add python-cython. Ricardo Wurmus
2023-04-21gnu: Add grpc-for-python-grpcio....* gnu/packages/rpc.scm (grpc-for-python-grpcio): New variable. Ricardo Wurmus
2023-04-20gnu: grpc: Build against 'abseil-cpp-cxxstd11'....* gnu/packages/rpc.scm (grpc)[inputs]: Use ABSEIL-CPP-CXXSTD11. Ludovic Courtès
2023-04-19gnu: python-typing-extensions: Move to (gnu packages python-build)....* gnu/packages/python-xyz.scm (python-typing-extensions): Move to... * gnu/packages/python-build.scm (python-typing-extensions): ... here. Maxim Cournoyer
2022-08-31gnu: Add python-grpc-stubs....* gnu/packages/rpc.scm (python-grpc-stubs): New variable. Maxim Cournoyer
2022-08-31gnu: Add python-grpcio-tools....* gnu/packages/rpc.scm (python-grpcio-tools): New variable. Maxim Cournoyer
2022-08-31gnu: python-grpcio: Update to 1.47.0....* gnu/packages/rpc.scm (python-grpcio): Update to 1.47.0. [source]{snippet}: Remove abseil-cpp from preserved bundled libraries. Preserve xxhash. [phases]: Delete trailing #t. {use-system-libraries}: Set the GRPC_PYTHON_BUILD_SYSTEM_RE2 and GRPC_PYTHON_BUILD_SYSTEM_ABSL environment variables to 1. Path setup.py. [inputs]: Add abseil-cpp and re2. Maxim Cournoyer