Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocate memory error #2108

Open
SuyueGuo opened this issue Aug 25, 2024 · 0 comments
Open

allocate memory error #2108

SuyueGuo opened this issue Aug 25, 2024 · 0 comments

Comments

@SuyueGuo
Copy link

Hello, maintainers of MediaInfo,

A bug was found in MediaInfo, which tries to allocate a memory that is too large.

Poc

allocate_error.zip

command to run

mediainfo ./allocate_error

Details

ASAN output:

=================================================================
==1922581==ERROR: AddressSanitizer: requested allocation size 0x10000000000004f (0x100000000001050 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
    #0 0x7f7f5a68a1e7 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f7f5a4d80bd in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) (/lib/x86_64-linux-gnu/libstdc++.so.6+0x14c0bd)

==1922581==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: allocation-size-too-big ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99 in operator new(unsigned long)
==1922581==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant