Bugzilla – Bug 555
alignement problem with struct cache_item in pwutil.c
Last modified: 2012-09-12 15:05:36 MDT
Created attachment 343 [details] Patch we use in pkgsrc, tested on sparc and mips On NetBSD, which uses 64bit time_t, and architectures that require strict alignement (and are 32bit) the blob allocation in pwutil.c causes unaligned accesses and makes sudo/visudo dump core.
I've made a more invasive fix for sudo 1.8.5. Can you verify that ftp://ftp.sudo.ws/pub/sudo/beta/sudo-1.8.5rc5.tar.gz works correctly? A similar diff will appear in the next sudo 1.7.x release.
This works fine, thanks for the quick fix!
Fixed in sudo 1.8.5 and 1.7.10.