Suvarna1488 / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

Failed allocation causes crash #929

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If either of these allocations fail we get a crash:

vp9_decoder_create.

CHECK_MEM_ERROR(cm, cm->fc,
                  (FRAME_CONTEXT *)vpx_calloc(1, sizeof(*cm->fc)));
  CHECK_MEM_ERROR(cm, cm->frame_contexts,
                  (FRAME_CONTEXT *)vpx_calloc(FRAME_CONTEXTS,
                  sizeof(*cm->frame_contexts)));

I forced the error on the allocation...   and saw the crash

Original issue reported on code.google.com by jimbankoski@google.com on 21 Jan 2015 at 11:56