Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Opus Opus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 30
    • Issues 30
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.OrgXiph.Org
  • OpusOpus
  • Issues
  • #2240
Closed
Open
Issue created Dec 04, 2015 by bugmenot@bugmenot

Division by zero in opus_demo

While fuzzing opus compression I get a lot of crashes like that:

katmacadapc% ~/afl-1.94b/opus-1.1.1/.libs-notrap/opus_demo -e voip 48000 2 8000 -cbr -bandwidth NB -complexity 0 -forcemono id:000000,sig:04,src:000020,op:havoc,rep:32 /tmp/1
libopus 0.9.14
Encoding 48000 Hz input at 8.000 kb/s in narrowband with 960-sample frames.
average bitrate:               8.000 kb/s
maximum bitrate:               8.000 kb/s
src/opus_demo.c:869:43: runtime error: division by zero
SUMMARY: AddressSanitizer: undefined-behavior src/opus_demo.c:869:43 in 
active bitrate:                 -nan kb/s
bitrate standard deviation:    0.000 kb/s

I have found it on many files, the smallest one is a single byte 0x80.

BTW, notice the print: libopus 0.9.14

Assignee
Assign to
Time tracking