ITADN

zip_fdopen

#500Closedcarizon-100023 创建于 2025-07-31
bug
C
carizon-100023commented
**libzip Version** V1.7.3 **Describe the Bug** code like: read a bin like (512 custom data) + (real.zip) after fseek 512 zip_fdopen(fd) failed **Expected Behavior** skip custom data , and read real.zip successful code: zip_error_init(&error); if ((src = zip_source_filep_create(fp, 0, -1, &error)) == NULL) { fclose(fp); _zip_set_open_error(zep, &error, 0); zip_error_fini(&error); return NULL; } zip_source_filep_create(fp, 0, -1, &error) should tellp to calc fp current offset and change to zip_source_filep_create(fp, cur_offset, -1, &error)
关闭于 2025-07-31 5 条评论