diff options
author | Matej Groma | 2022-05-08 14:47:46 +0200 |
---|---|---|
committer | Matej Groma | 2022-05-08 14:52:37 +0200 |
commit | 64f90aa74a2534444f3e4e8ab68eb9be08077db0 (patch) | |
tree | 3a33a9cfb412cf35048a3c2b96278618a0a1503b /fix_invalid_access.patch | |
parent | b6467ab19c8ebef562ed495d09e996dd5b4db4e8 (diff) | |
download | aur-enigma_sdl.tar.gz |
Upgrade to version 1.30
Also add patch to fix invalid memory access occurring with older compiler
or runtime (not sure about the exact cause).
Signed-off-by: Matej Groma <sbovdvvnir68a8hftegth9whs+arch-aur@matejgroma.com>
Diffstat (limited to 'fix_invalid_access.patch')
-rw-r--r-- | fix_invalid_access.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fix_invalid_access.patch b/fix_invalid_access.patch new file mode 100644 index 000000000000..a5b83fc5d208 --- /dev/null +++ b/fix_invalid_access.patch @@ -0,0 +1,13 @@ +--- a/lib-src/zipios++/zipios++/zipheadio.h 2021-06-18 22:04:12.000000000 +0200 ++++ b/lib-src/zipios++/zipios++/zipheadio.h 2022-05-08 13:58:16.936444854 +0200 +@@ -150,7 +150,9 @@ + } + + inline void writeByteSeq ( ostream &os, const vector < unsigned char > &vec ) { +- os.rdbuf()->sputn( reinterpret_cast< const char * >( &( vec[ 0 ] ) ), vec.size() ) ; ++ if ( vec.size () != 0 ) { ++ os.rdbuf()->sputn( reinterpret_cast< const char * >( &( vec[ 0 ] ) ), vec.size() ) ; ++ } + } + + istream& operator>> ( istream &is, ZipLocalEntry &zlh ) ; |