libavcodec/sonic.c:422: error: Null Dereference
  pointer `state` last assigned on line 420 could be null and is dereferenced by call to `memcpy()` at line 422, column 5.

libavcodec/sonic.c:416:1: start of procedure modified_levinson_durbin()
414. // actual whitened result as it goes.
415. 
416. static void modified_levinson_durbin(int *window, int window_entries,
     ^
417.         int *out, int out_entries, int channels, int *tap_quant)
418. {

libavcodec/sonic.c:420:5: 
418. {
419.     int i;
420.     int *state = av_mallocz(4* window_entries);
         ^
421. 
422.     memcpy(state, window, 4* window_entries);

libavutil/mem.c:135:1: start of procedure av_mallocz()
  133. }
  134. 
  135. void *av_mallocz(unsigned int size)
       ^
  136. {
  137.     void *ptr = av_malloc(size);

libavutil/mem.c:137:5: 
  135. void *av_mallocz(unsigned int size)
  136. {
  137.     void *ptr = av_malloc(size);
           ^
  138.     if (ptr)
  139.         memset(ptr, 0, size);

libavutil/mem.c:43:1: start of procedure av_malloc()
    41.    linker will do it automatically */
    42. 
    43. void *av_malloc(unsigned int size)
        ^
    44. {
    45.     void *ptr = NULL;

libavutil/mem.c:45:5: 
    43. void *av_malloc(unsigned int size)
    44. {
    45.     void *ptr = NULL;
            ^
    46. #ifdef CONFIG_MEMALIGN_HACK
    47.     long diff;

libavutil/mem.c:51:8: Taking true branch
    49. 
    50.     /* let's disallow possible ambiguous cases */
    51.     if(size > (INT_MAX-16) )
               ^
    52.         return NULL;
    53. 

libavutil/mem.c:52:9: 
    50.     /* let's disallow possible ambiguous cases */
    51.     if(size > (INT_MAX-16) )
    52.         return NULL;
                ^
    53. 
    54. #ifdef CONFIG_MEMALIGN_HACK

libavutil/mem.c:95:1: return from a call to av_malloc
    93. #endif
    94.     return ptr;
    95. }
        ^
    96. 
    97. void *av_realloc(void *ptr, unsigned int size)

libavutil/mem.c:138:9: Taking false branch
  136. {
  137.     void *ptr = av_malloc(size);
  138.     if (ptr)
               ^
  139.         memset(ptr, 0, size);
  140.     return ptr;

libavutil/mem.c:140:5: 
  138.     if (ptr)
  139.         memset(ptr, 0, size);
  140.     return ptr;
           ^
  141. }
  142. 

libavutil/mem.c:141:1: return from a call to av_mallocz
  139.         memset(ptr, 0, size);
  140.     return ptr;
  141. }
       ^
  142. 
  143. char *av_strdup(const char *s)

libavcodec/sonic.c:422:5: 
420.     int *state = av_mallocz(4* window_entries);
421. 
422.     memcpy(state, window, 4* window_entries);
         ^
423. 
424.     for (i = 0; i < out_entries; i++)
