mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-10 23:20:58 +00:00
Fix memory error on virus workaround code
This commit is contained in:
parent
b4ce557be5
commit
7214ba2303
@ -255,7 +255,6 @@ void runtest(int n, char const* filename1, char const* arg2)
|
|||||||
// print(join('', @str));
|
// print(join('', @str));
|
||||||
|
|
||||||
std::string filename(std::string(filename1) + ".obfuscated");
|
std::string filename(std::string(filename1) + ".obfuscated");
|
||||||
PointerHolder<char> file_buf;
|
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
read_file_into_memory(filename.c_str(), file_buf, size);
|
read_file_into_memory(filename.c_str(), file_buf, size);
|
||||||
char* p = file_buf.getPointer();
|
char* p = file_buf.getPointer();
|
||||||
|
Loading…
Reference in New Issue
Block a user