summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_source_crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/lib/zip_source_crc.c')
-rw-r--r--ext/zip/lib/zip_source_crc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/lib/zip_source_crc.c b/ext/zip/lib/zip_source_crc.c
index 99bc965228..7d6df6a385 100644
--- a/ext/zip/lib/zip_source_crc.c
+++ b/ext/zip/lib/zip_source_crc.c
@@ -125,7 +125,7 @@ crc_read(struct zip_source *src, void *_ctx, void *data,
}
else {
ctx->size += (zip_uint64_t)n;
- ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data, (uInt)n); /* XXX: check for overflow, use multiple crc calls if needed */
+ ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data, (uInt)n); /* TODO: check for overflow, use multiple crc calls if needed */
}
return n;
@@ -139,7 +139,7 @@ crc_read(struct zip_source *src, void *_ctx, void *data,
st = (struct zip_stat *)data;
if (ctx->eof) {
- /* XXX: Set comp_size, comp_method, encryption_method?
+ /* TODO: Set comp_size, comp_method, encryption_method?
After all, this only works for uncompressed data. */
st->size = ctx->size;
st->crc = ctx->crc;