Misa
36e38027d8
Simplify m_headers init, hardcode 128 less
...
I don't know how no one realized that the for-loop to (poorly)
initialize m_headers was basically unnecessary, and that the memset()
should've just been used instead. Well, except it should also be
replaced with SDL_memset(), but that's besides the point.
Also, I decided to hardcode the 128 thing less, in case people want to
fork the source code and make a build where it's changed.
2020-07-06 11:19:24 -04:00
Misa
97bf731fa3
If invalid valid
value, set valid
to false
...
This is just to prevent parsing potentially garbage data, because some
of the code relies on the `valid` value being valid.
2020-06-30 21:07:05 -04:00
Misa
4c2f5ed032
Add binaryBlob::getExtra()
...
This needs to be done because m_headers is a private member of
binaryBlob.
2020-06-30 21:07:05 -04:00
Ethan Lee
3323b7e3cf
Maybe check the right size m8
2020-06-14 22:44:34 -04:00
Ethan Lee
bd71fb8a68
Disallow negative size values in BinaryBlob
2020-06-14 22:43:58 -04:00
Ethan Lee
4894639b3a
valid needs to have either exactly 1 or 0
2020-06-14 22:40:57 -04:00
Ethan Lee
06a71bab18
Some sanity checks for BinaryBlob header data
2020-06-14 22:39:06 -04:00
leo60228
f3b26904ec
Don't leak binaryBlob
2020-06-07 22:40:03 -04:00
Rémi Verschelde
a83e83ca1b
Fix warnings raised by GCC 8
2020-01-11 08:53:32 -05:00
viri
5829007bed
fix uninitialized member vars everywhere
...
also fix a spelling error of 'forground' in the graphics class buffer
2020-01-10 21:06:59 -05:00
Marvin Scholz
06c6de9433
Use PHYSFS_readBytes instead of deprecated PHYSFS_read
2020-01-10 18:41:22 -05:00
Ethan Lee
f7c0321b71
Hello WWWWWWorld!
2020-01-08 10:37:50 -05:00