fixes https://crbug.com/oss-fuzz/19956 am not super happy with the fix, guess we should do some check before the memcpy anyway as @blueshade7 thinks also, so let's have it or revert it when we have a better approach for the case.