start_download buffer overrun fix