Bento4 icon indicating copy to clipboard operation
Bento4 copied to clipboard

StackOverflow-AP4_HevcSampleDescription::GetCodecString-Ap4SampleDescription-612

Open qhjchc opened this issue 3 years ago • 0 comments

System info

Ubuntu 16.04 xenial, gcc (Ubuntu 5.5.0-12ubuntu1), Bento4 (latest master 8a2bf3)

Command line

mp4info --show-layout --show-samples --show-sample-data @@

Output

File:
  major brand:      mp42
  minor version:    12a007e
  compatible brand: mp42
  compatible brand: isoY
  fast start:       no

Movie:
  duration:   0 (media timescale units)
  duration:   0 (ms)
  time scale: 0
  fragments:  no

Found 1 Tracks
Track 1:
  flags:        7 ENABLED IN-MOVIE IN-PREVIEW
  id:           -16777215
  type:         Unknown []
  duration: 0 ms
  language: eng
  media:
    sample count: 0
    timescale:    65521
    duration:     12 (media timescale units)
    duration:     0 (ms)
    bitrate (computed): 0.000 Kbps
  display width:  48.000000
  display height: 144.000000
  Sample Description 0
    Coding:       hvc1 (H.265)
[1]    58362 segmentation fault   --show-layout --show-samples --show-sample-data

AddressSanitizer output

File:
  major brand:      mp42
  minor version:    12a007e
  compatible brand: mp42
  compatible brand: isoY
  fast start:       no

Movie:
  duration:   0 (media timescale units)
  duration:   0 (ms)
  time scale: 0
  fragments:  no

Found 1 Tracks
Track 1:
  flags:        7 ENABLED IN-MOVIE IN-PREVIEW
  id:           -16777215
  type:         Unknown []
  duration: 0 ms
  language: eng
  media:
    sample count: 0
    timescale:    65521
    duration:     12 (media timescale units)
    duration:     0 (ms)
    bitrate (computed): 0.000 Kbps
  display width:  48.000000
  display height: 144.000000
  Sample Description 0
    Coding:       hvc1 (H.265)
ASAN:SIGSEGV
=================================================================
==44412==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd79729f68 (pc 0x0000004a27e2 bp 0x7ffd7972a0d0 sp 0x7ffd79729f50 T0)
    #0 0x4a27e1 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:608
    #1 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
    #2 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
    #3 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
    #4 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
    #5 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
    #6 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
    #7 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
    #8 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
    ...
    #248 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
    #249 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
    #250 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
    #251 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171

SUMMARY: AddressSanitizer: stack-overflow ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:608 AP4_HevcSampleDescription::GetCodecString(AP4_String&)
==44412==ABORTING

POC

StackOverflow-GetCodecString-Ap4SampleDescription_cpp-612.zip

qhjchc avatar Jul 21 '21 03:07 qhjchc