Stack overflow patch