avprobe.c:305: error: Null Dereference
  pointer `p` last assigned on line 304 could be null and is dereferenced at line 305, column 12.

avprobe.c:297:1: start of procedure old_print_object_header()
295.  * old-style pseudo-INI
296.  */
297. static void old_print_object_header(const char *name)
     ^
298. {
299.     char *str, *p;

avprobe.c:301:10: Taking false branch
299.     char *str, *p;
300. 
301.     if (!strcmp(name, "tags"))
              ^
302.         return;
303. 

avprobe.c:304:5: 
302.         return;
303. 
304.     str = p = av_strdup(name);
         ^
305.     while (*p) {
306.         *p = av_toupper(*p);

libavutil/mem.c:213:1: start of procedure av_strdup()
  211. }
  212. 
  213. char *av_strdup(const char *s)
       ^
  214. {
  215.     char *ptr = NULL;

libavutil/mem.c:215:5: 
  213. char *av_strdup(const char *s)
  214. {
  215.     char *ptr = NULL;
           ^
  216.     if (s) {
  217.         int len = strlen(s) + 1;

libavutil/mem.c:216:9: Taking true branch
  214. {
  215.     char *ptr = NULL;
  216.     if (s) {
               ^
  217.         int len = strlen(s) + 1;
  218.         ptr = av_realloc(NULL, len);

libavutil/mem.c:217:9: 
  215.     char *ptr = NULL;
  216.     if (s) {
  217.         int len = strlen(s) + 1;
               ^
  218.         ptr = av_realloc(NULL, len);
  219.         if (ptr)

libavutil/mem.c:218:9: 
  216.     if (s) {
  217.         int len = strlen(s) + 1;
  218.         ptr = av_realloc(NULL, len);
               ^
  219.         if (ptr)
  220.             memcpy(ptr, s, len);

libavutil/mem.c:117:1: start of procedure av_realloc()
    115. }
    116. 
    117. void *av_realloc(void *ptr, size_t size)
         ^
    118. {
    119. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:124:9: Taking true branch
    122. 
    123.     /* let's disallow possibly ambiguous cases */
    124.     if (size > (INT_MAX - 16))
                 ^
    125.         return NULL;
    126. 

libavutil/mem.c:125:9: 
    123.     /* let's disallow possibly ambiguous cases */
    124.     if (size > (INT_MAX - 16))
    125.         return NULL;
                 ^
    126. 
    127. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:138:1: return from a call to av_realloc
    136.     return realloc(ptr, size);
    137. #endif
    138. }
         ^
    139. 
    140. int av_reallocp(void *ptr, size_t size)

libavutil/mem.c:219:13: Taking false branch
  217.         int len = strlen(s) + 1;
  218.         ptr = av_realloc(NULL, len);
  219.         if (ptr)
                   ^
  220.             memcpy(ptr, s, len);
  221.     }

libavutil/mem.c:222:5: 
  220.             memcpy(ptr, s, len);
  221.     }
  222.     return ptr;
           ^
  223. }
  224. 

libavutil/mem.c:223:1: return from a call to av_strdup
  221.     }
  222.     return ptr;
  223. }
       ^
  224. 
  225. char *av_strndup(const char *s, size_t len)

avprobe.c:305:12: Loop condition is false. Leaving loop
303. 
304.     str = p = av_strdup(name);
305.     while (*p) {
                ^
306.         *p = av_toupper(*p);
307.         p++;
