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

Segmentation fault after bad ONVIF request #207

Open
sansarus opened this issue Oct 9, 2024 · 3 comments
Open

Segmentation fault after bad ONVIF request #207

sansarus opened this issue Oct 9, 2024 · 3 comments
Labels

Comments

@sansarus
Copy link

sansarus commented Oct 9, 2024

Required information

  • Camera board id: XM 00001532

  • OpenIPC version: 2.4.10.07-lite

  • Commit:

  • Branch:

  • Tag:

  • installation method: coupler

  • modified majestic.yaml: no

    Core dump file from /tmp/ majestic.2184.11.1728464569.core

Issue description

Tried to ask StreamUri via ONVIF Device Test Tool v20.12 rev.6434
and Majestic died with Segmentation fault (core dumped)

template onvif request !!!without selected Profile Token!!!

Request:

POST /onvif/media_service HTTP/1.1
Host: 192.168.220.74
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 344

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <GetStreamUri xmlns="http://www.onvif.org/ver20/media/wsdl">
      <Protocol>RTSP</Protocol>
      <ProfileToken />
    </GetStreamUri>
  </s:Body>
</s:Envelope>`

Correct request with Profile Token work good

Request:

POST /onvif/media_service HTTP/1.1
Host: 192.168.220.74
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 373

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <GetStreamUri xmlns="http://www.onvif.org/ver20/media/wsdl">
      <Protocol>RTSP</Protocol>
      <ProfileToken>MainStreamToken</ProfileToken> ////!!!!!!!!
    </GetStreamUri>
  </s:Body>
</s:Envelope>
@sansarus
Copy link
Author

sansarus commented Oct 9, 2024

@flyrouter
Copy link
Member

Thank you very much for the report
We will definitely check this and try to fix it.

@flyrouter
Copy link
Member

Good day
Please check the new build and give feedback.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants