when detected a '*' in the path, it will try to locate in it's parent dir, and compress again.
In my case, when path enters testa*_1.model, it will return back to it's parent dir which should be STATION, and compress again, then, oops, it meet testa*_1.model again, now it will loop around.
my coredump stack appears like below
The input filename is unexpected for me, how can I avoid crash, in this suituation, Thanks
when i use minizip-ng api
mz_zip_writer_add_path
to compress a directory which contains some filenames with *, just like this below:-- HARDWARE | -- test1.model | -- STATION | -- .test | -- testa*_1.model
it will crash.
I read the source code:
when detected a '*' in the path, it will try to locate in it's parent dir, and compress again.
In my case, when path enters
testa*_1.model
, it will return back to it's parent dir which should be STATION, and compress again, then, oops, it meettesta*_1.model
again, now it will loop around.my coredump stack appears like below
The input filename is unexpected for me, how can I avoid crash, in this suituation, Thanks