Skip to content

Fix a crash in filters when a linearRGB filter output is used in a sRGB filter

Ivan Molodetskikh requested to merge YaLTeR/librsvg:fix-merge-crashs into master

Found a crash in the resvg test suite.

FilterContext::get_input() ensures filters get the color space they want. While it was converting sRGB to linearRGB, I overlooked the possibility of linearRGB input when sRGB is needed. This patch fixes this and adds a test.

Merge request reports