mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix crash when crypto compiled in but disabled
When kvazaar was built with crypto++ but running without using encryption features, kvazaar attempted to delete an uninitialized crypto handle. Fixed by setting the handle to NULL in kvz_encoder_state_init.
This commit is contained in:
parent
8654b48186
commit
2e8838de6e
|
@ -29,7 +29,6 @@
|
|||
#include "encoder.h"
|
||||
#include "encoder_state-geometry.h"
|
||||
#include "encoderstate.h"
|
||||
#include "extras/crypto.h"
|
||||
#include "image.h"
|
||||
#include "imagelist.h"
|
||||
#include "kvazaar.h"
|
||||
|
@ -308,6 +307,7 @@ int kvz_encoder_state_init(encoder_state_t * const child_state, encoder_state_t
|
|||
child_state->parent = parent_state;
|
||||
child_state->children = MALLOC(encoder_state_t, 1);
|
||||
child_state->children[0].encoder_control = NULL;
|
||||
child_state->crypto_hdl = NULL;
|
||||
child_state->tqj_bitstream_written = NULL;
|
||||
child_state->tqj_recon_done = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue