Download tasks/csa159/pair_138263/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 864 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_138263/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/csa159/pair_138263/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_138263/patch.diff
864 Bytes
| diff --git a/src/decode.c b/src/decode.c | |
| index fd8575ad..1bb48962 100644 | |
| --- a/src/decode.c | |
| +++ b/src/decode.c | |
| decompress_R2004_section (Bit_Chain *restrict src, Bit_Chain *restrict dec) | |
| opcode1 = 0x11; | |
| LOG_INSANE (">O %x!\n", opcode1); | |
| } | |
| + if (end > dec->size || (long)pos < comp_offset | |
| + || (size_t)(pos - comp_offset) >= dec->size | |
| + || (size_t)comp_offset > dec->size) | |
| + { | |
| + LOG_ERROR ("Invalid decompression bytes %d, offset %d", comp_bytes, | |
| + comp_offset); | |
| + return DWG_ERR_VALUEOUTOFBOUNDS; | |
| + } | |
| // GH #1204: memmove is wrong here: when comp_offset < comp_bytes the | |
| // source and destination overlap and newly-written bytes must be read | |
| // back (LZ77 run-length extension). memmove copies from original bytes. |