Opened 8 months ago

#10582 new defect

ffplay invalid reads

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

something like this currnetly happens when I run ffplay with available or unavailable file as an argument

the same also happens with fresh ubuntu install and ffplay 4.4.2 from ubuntu's repo

valgrind --leak-check=full ./ffplay_g nofile
==792320== Memcheck, a memory error detector
==792320== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==792320== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==792320== Command: ./ffplay_g nofile
==792320== 
ffplay version N-112164-gcb26b85953 Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      58. 25.100 / 58. 25.100
  libavcodec     60. 27.100 / 60. 27.100
  libavformat    60. 13.100 / 60. 13.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9. 11.100 /  9. 11.100
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
==792320== Invalid read of size 8
==792320==    at 0x4028708: strncmp (strcmp.S:172)
==792320==    by 0x400668D: is_dst (dl-load.c:216)
==792320==    by 0x400810E: _dl_dst_count (dl-load.c:253)
==792320==    by 0x400810E: expand_dynamic_string_token (dl-load.c:395)
==792320==    by 0x40082B7: fillin_rpath.isra.0 (dl-load.c:483)
==792320==    by 0x4008602: decompose_rpath (dl-load.c:654)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:696)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:677)
==792320==    by 0x400ABF5: _dl_map_object (dl-load.c:2165)
==792320==    by 0x4003494: openaux (dl-deps.c:64)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x4003C7B: _dl_map_object_deps (dl-deps.c:248)
==792320==    by 0x400EA0E: dl_open_worker_begin (dl-open.c:592)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x400DF99: dl_open_worker (dl-open.c:782)
==792320==  Address 0x6f8a729 is 9 bytes inside a block of size 15 alloc'd
==792320==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==792320==    by 0x402723F: malloc (rtld-malloc.h:56)
==792320==    by 0x402723F: strdup (strdup.c:42)
==792320==    by 0x4008594: decompose_rpath (dl-load.c:629)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:696)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:677)
==792320==    by 0x400ABF5: _dl_map_object (dl-load.c:2165)
==792320==    by 0x4003494: openaux (dl-deps.c:64)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x4003C7B: _dl_map_object_deps (dl-deps.c:248)
==792320==    by 0x400EA0E: dl_open_worker_begin (dl-open.c:592)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x400DF99: dl_open_worker (dl-open.c:782)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x400E34D: _dl_open (dl-open.c:883)
==792320== 
==792320== Invalid read of size 8
==792320==    at 0x4028708: strncmp (strcmp.S:172)
==792320==    by 0x400668D: is_dst (dl-load.c:216)
==792320==    by 0x4007F79: _dl_dst_substitute (dl-load.c:295)
==792320==    by 0x40082B7: fillin_rpath.isra.0 (dl-load.c:483)
==792320==    by 0x4008602: decompose_rpath (dl-load.c:654)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:696)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:677)
==792320==    by 0x400ABF5: _dl_map_object (dl-load.c:2165)
==792320==    by 0x4003494: openaux (dl-deps.c:64)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x4003C7B: _dl_map_object_deps (dl-deps.c:248)
==792320==    by 0x400EA0E: dl_open_worker_begin (dl-open.c:592)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x400DF99: dl_open_worker (dl-open.c:782)
==792320==  Address 0x6f8a729 is 9 bytes inside a block of size 15 alloc'd
==792320==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==792320==    by 0x402723F: malloc (rtld-malloc.h:56)
==792320==    by 0x402723F: strdup (strdup.c:42)
==792320==    by 0x4008594: decompose_rpath (dl-load.c:629)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:696)
==792320==    by 0x400ABF5: cache_rpath (dl-load.c:677)
==792320==    by 0x400ABF5: _dl_map_object (dl-load.c:2165)
==792320==    by 0x4003494: openaux (dl-deps.c:64)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x4003C7B: _dl_map_object_deps (dl-deps.c:248)
==792320==    by 0x400EA0E: dl_open_worker_begin (dl-open.c:592)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x400DF99: dl_open_worker (dl-open.c:782)
==792320==    by 0x4F68C47: _dl_catch_exception (dl-error-skeleton.c:208)
==792320==    by 0x400E34D: _dl_open (dl-open.c:883)
==792320== 
nofile: No such file or directory

==792320== 
==792320== HEAP SUMMARY:
==792320==     in use at exit: 372,077 bytes in 3,596 blocks
==792320==   total heap usage: 79,748 allocs, 76,152 frees, 29,897,198 bytes allocated
==792320== 
==792320== LEAK SUMMARY:
==792320==    definitely lost: 0 bytes in 0 blocks
==792320==    indirectly lost: 0 bytes in 0 blocks
==792320==      possibly lost: 0 bytes in 0 blocks
==792320==    still reachable: 372,077 bytes in 3,596 blocks
==792320==         suppressed: 0 bytes in 0 blocks
==792320== Reachable blocks (those to which a pointer was found) are not shown.
==792320== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==792320== 
==792320== For lists of detected and suppressed errors, rerun with: -s
==792320== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Change History (0)

Note: See TracTickets for help on using tickets.