Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning: [S

## [Unreleased]

## [0.5.1] — 2026-09-29
## [0.5.2] — 2026-09-29

### Added
- PNG IHDR read parity: `Filter` and `Interlace` with reference PrintConv
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@woss/exiftool",
"version": "0.5.1",
"version": "0.5.2",
"license": "MIT",
"exports": {
".": "./mod.ts"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@woss/exiftool",
"version": "0.5.1",
"version": "0.5.2",
"description": "ExifTool rewrite in TypeScript",
"license": "MIT",
"type": "module",
Expand Down
6 changes: 6 additions & 0 deletions src/format/png.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ test('png zTXt inflates to bare keyword tag', async () => {
assertEquals(result.tags['Comment'], 'hello compressed');
});

test('png zTXt with malformed deflate stream is skipped', async () => {
const payload = concat(encoder.encode('Comment\0'), new Uint8Array([0]), new Uint8Array([1, 2, 3, 4, 5]));
const result = await pngParser.parse(png(chunk('zTXt', payload), chunk('IEND', new Uint8Array(0))), 'ztxt-bad.png');
assertEquals(result.tags['Comment'], undefined);
});

test('png iTXt uncompressed text extracted', async () => {
const payload = concat(
encoder.encode('Comment\0'),
Expand Down
Loading