summaryrefslogtreecommitdiff
path: root/lodepng.h
diff options
context:
space:
mode:
Diffstat (limited to 'lodepng.h')
-rw-r--r--lodepng.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lodepng.h b/lodepng.h
index ef2c820..8e2e038 100644
--- a/lodepng.h
+++ b/lodepng.h
@@ -677,7 +677,11 @@ Third byte: must be uppercase
Fourth byte: uppercase = unsafe to copy, lowercase = safe to copy
*/
-/*get the length of the data of the chunk. Total chunk length has 12 bytes more.*/
+/*
+Gets the length of the data of the chunk. Total chunk length has 12 bytes more.
+There must be at least 4 bytes to read from. If the result value is too large,
+it may be corrupt data.
+*/
unsigned lodepng_chunk_length(const unsigned char* chunk);
/*puts the 4-byte type in null terminated string*/