Looks like some formats like cairo-ARGB32 don't work as expected without null termination
cairo-ARGB32