BLF: Fix handling of 0-length log containers

This commit is contained in:
Giovanni Musto 2024-01-30 09:46:43 +01:00 committed by AndersBroman
parent 0032e25a8a
commit 3d63241756
1 changed files with 5 additions and 0 deletions

View File

@ -659,6 +659,11 @@ blf_pull_logcontainer_into_memory(blf_params_t *params, blf_log_container_t *con
return TRUE;
}
if (container->real_length == 0) {
ws_info("blf_pull_logcontainer_into_memory: found container with 0 length");
return TRUE;
}
/* pull compressed data into buffer */
if (container->infile_start_pos < 0) {
/*