cairocffi icon indicating copy to clipboard operation
cairocffi copied to clipboard

write_to_png does not work on macOS and on Linux hardened systems

Open codingcatgirl opened this issue 7 years ago • 3 comments

Migrating cairocffi so it uses the faster cffi API mode and new-style callbacks would solve this problem. See also #105.

codingcatgirl avatar Oct 17 '17 15:10 codingcatgirl

The fix in d7bb680 is not perfect, but it should at least make write_to_png work on macOS and hardened systems.

@codingcatgirl If you’re interested in testing this fix, let me know! I’ll use this workaround everywhere it’s possible.

liZe avatar Apr 11 '20 21:04 liZe

I'm currently unable to test this, maybe @evilscientress can?

codingcatgirl avatar Apr 18 '20 11:04 codingcatgirl

Sadly not. Back then grsecurity hardened kernels where still a thing. I don't have a system with kernel anymore with hardening of that kind. IIRC the problem was memory that was RWX mapped. grsec didn't allow such memory allocations.

evilscientress avatar Apr 18 '20 20:04 evilscientress