store_ext.c: fail safely on 32bit and fix for some potential security problems