Hi, Hmm, yeah that seems to have been more trouble than I was expecting. But should be better overall. It looks like re_align_field_recurse() can insert bytes, which can fail due to OOM; need to check retval on insert_bytes and probably propagate failure up from re_align_field_recurse() to each caller of that. Be sure when failing due to OOM that things aren't left half-modified. Havoc