FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Minor corner-cases for OPL drivers by mywave82 · Pull Request #287 · adplug/adplug · GitHub

/ adplug Public

Minor corner-cases for OPL drivers - #287

Open
mywave82 wants to merge 5 commits into
adplug:masterfrom
mywave82:opl-coverity
Open

mywave82 wants to merge 5 commits into
adplug:masterfrom
mywave82:opl-coverity

Conversation

Copy link
Copy Markdown
Contributor

These are primarily to make static-code analyzer (Coverity) happy, but never hurts to ensure memory is initialized and range-test arguments when functions are public.

…overity)

Protect update() against negative and zero sample-request.

The zero-samples request could potentially forward uninitatlized pointers which would be attempted to be filled with nothing.
 * If mode set to OPL3 (not supported for this emulator), output[] contains random data.
 * Missing header file.
 * Explicit initialize mixbuf0, mixbuf1, mixbuf2, even if they are never accessed before being assigned.
 * oldvol not initialized.
 * gotperms not initialized.
 * Explicit initialize mixbuf0, mixbuf1, mixbuf2, even if they are never accessed before being assigned. Coverity static code-analyzer really dislikes non-initialized pointers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL