[BZ#613678] Lots of endian issues in librsvg
Submitted by and..@...de
Created attachment 156847 Fixed rsvg-filter.c
I noticed that the rsvg-filter.c part of librsvg has quite a lot of endian issues. Many filters expect data to be present in BGRA byte order, but on big endian systems data will be in ARGB order, of course.
I've fixed all endian issues that I came across while playing with librsvg on a PPC system. I used librsvg 2.26.0 as the base version. rsvg-cairo-draw.c also needs a fix but this is merely a single line.
Here are my modified versions so someone can review the changes and include the fixes in the master version.
Please note that I'm including the full versions because I don't have the tools necessary to create a diff patch.
Attachment 156847, "Fixed rsvg-filter.c":