SHA256
8
0
forked from pool/libxml2

Accepting request 107691 from home:msmeissn:branches:devel:libraries:c_c++

fixed 64bit bigendian issue

OBS-URL: https://build.opensuse.org/request/show/107691
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxml2?expand=0&rev=58
This commit is contained in:
2012-03-01 17:45:57 +00:00
committed by Git OBS Bridge
parent 16d4b3f828
commit ef6a686a3c
3 changed files with 25 additions and 0 deletions

18
bigendian64.patch Normal file
View File

@@ -0,0 +1,18 @@
--- xzlib.c.xx 2012-03-01 17:23:54.000000000 +0000
+++ xzlib.c 2012-03-01 17:24:48.000000000 +0000
@@ -228,9 +228,14 @@
if (state->err != LZMA_OK)
return -1;
if (state->eof == 0) {
+ /* avail_in is size_t, which is not necessary sizeof(unsigned) */
+ unsigned tmp = strm->avail_in;
if (xz_load(state, state->in, state->size,
- (unsigned *) &(strm->avail_in)) == -1)
+ &tmp) == -1) {
+ strm->avail_in = tmp;
return -1;
+ }
+ strm->avail_in = tmp;
strm->next_in = state->in;
}
return 0;