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

SEGV bug #40

Open
mirzamomen opened this issue Jul 27, 2022 · 0 comments
Open

SEGV bug #40

mirzamomen opened this issue Jul 27, 2022 · 0 comments

Comments

@mirzamomen
Copy link

There is a Null pointer bug in Live555 in this repo, triggered by a faulty multimedia file of type ".aac"

ASAN Output:

==2680==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000009c (pc 0x00000044b3a0 bp 0x60b00000a758 sp 0x7ffc65d15a40 T0)
    #0 0x44b39f in ADTSAudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x44b39f)
    #1 0x4d70ce in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, unsigned int, Port const&, Port const&, int, unsigned char, unsigned char, unsigned int&, unsigned char&, unsigned char&, Port&, Port&, void*&) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x4d70ce)
    #2 0x416ae2 in RTSPServer::RTSPClientSession::handleCmd_SETUP(RTSPServer::RTSPClientConnection*, char const*, char const*, char const*) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x416ae2)
    #3 0x41067a in RTSPServer::RTSPClientConnection::handleRequestBytes(int) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x41067a)
    #4 0x40ae4d in GenericMediaServer::ClientConnection::incomingRequestHandler() (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x40ae4d)
    #5 0x40af10 in GenericMediaServer::ClientConnection::incomingRequestHandler(void*, int) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x40af10)
    #6 0x514415 in BasicTaskScheduler::SingleStep(unsigned int) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x514415)
    #7 0x518f0f in BasicTaskScheduler0::doEventLoop(char volatile*) (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x518f0f)
    #8 0x404bd9 in main (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x404bd9)
    #9 0x7febfa3b683f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
    #10 0x407108 in _start (/home/ubuntu/experiments/live555-cov/testProgs/testOnDemandRTSPServer+0x407108)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 ADTSAudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*)
==2680==ABORTING

To reproduce:

1- Unzip the attached file
2- Copy the ".aac" file into testProgs/test.aac
3- Run the server as: ./testOnDemandRTSPServer 8554
4- Get connected to the server and try to play the multimedia

live_Nptr_test_id64.aac.zip

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