Skip to content
Snippets Groups Projects
Commit 3bb527e1 authored by Stephan Bosch's avatar Stephan Bosch Committed by aki.tuomi
Browse files

lib-sieve: plugins: include: ext-include-binary - Properly check whether...

lib-sieve: plugins: include: ext-include-binary - Properly check whether binary dependency block load succeeded.

Otherwise, a segfault may occur on a corrupt binary.
parent e2000575
No related branches found
No related tags found
No related merge requests found
......@@ -252,6 +252,12 @@ static bool ext_include_binary_open
sieve_size_t offset;
sblock = sieve_binary_extension_get_block(sbin, ext);
if (sblock == NULL) {
e_error(svinst->event,
"include: failed to load dependency block of binary %s",
sieve_binary_path(sbin));
return FALSE;
}
block_id = sieve_binary_block_get_id(sblock);
offset = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.