Comments (7)
Where does that 5 come from?
from zmusic.
https://github.com/coelckers/ZMusic/blob/a192e660493b9efaa5268fd1598f7cbe1465238b/source/mididevices/music_wavewriter_mididevice.cpp#L155
Seems to be a typo.
from zmusic.
This seems to be a buffer overflow bug too. Needs quick fixing.
from zmusic.
Not really. The given line will write four intended bytes and one junk byte to a file. It's impossible to alter stack or heap. The most severe effect would be a crash if the next byte after size
variable cannot be read.
from zmusic.
Does it compile with ba9e9da?
from zmusic.
Yep. But I am getting this warning:
/home/caco345/ZMusic/source/zmusic/zmusic.cpp:506:2: warning: deleting pointer to incomplete type '__sFILE' may cause undefined behavior [-Wdelete-incomplete]
delete f;
^ ~
/home/caco345/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h:58:8: note: forward declaration of '__sFILE'
struct __sFILE;
^
1 warning generated.
The FILE
struct is an incomplete type when building for Android Nougat and later. delete f
should be changed to fclose(f)
.
from zmusic.
from zmusic.
Related Issues (20)
- Add support for OPUS codec HOT 2
- Unable to build the zmusic 1.1.6 HOT 1
- New release HOT 1
- No music when compiled against FluidSynth 2.2.0 HOT 8
- CMake + static library + static dependencies HOT 4
- should it be cmake . --build or cmake --build . ? HOT 2
- Missing releases HOT 5
- can't build zmusic HOT 2
- Using WildMidi always fails due to API confusion in WildMIDIDevice::LoadInstruments() HOT 1
- Default install prefix is /usr instead of /usr/local
- `BUILD_SHARED_LIBS=OFF` does not work properly in Ubuntu 18.04 HOT 3
- Non ASLYUM based AMF file is mistaken for libmpg123 audio. HOT 3
- *.umx tracker modules doesn't playback properly HOT 5
- Add versioning to soname
- Fluidsynth cannot load patch files from unicode folders properly HOT 3
- `VectorReader::VectorReader(const uint8_t* data, size_t size)` doesn't fully initialize HOT 1
- zmusic not compiling/building - error: βuint8_tβ does not name a type HOT 1
- Please support CMAKE_INSTALL_LIBDIR for multilib systems
- Add `find_library` for GME library. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zmusic.