Commit 7580e47
[WIP] Ensure HEIC and AVIF have consistent metadata extraction (#63)
* Initial plan
* Enhanced HEIC and AVIF metadata extraction to match other formats
Added comprehensive EXIF parsing including:
- IFD0 tags: description, author, copyright
- Exif Sub-IFD tags: flash, whiteBalance, lensMake, lensModel, userComment
- GPS IFD: full latitude/longitude parsing
- Updated field count from 11 to 19 fields in both formats
- Updated README and documentation to reflect enhanced support
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
* Add safety bounds checks to EXIF parsing loops
- Added upper bounds (100 entries max) to parseExifSubIFD loops in HEIC and AVIF
- Added upper bounds (100 entries max) to parseGPSIFD loops in HEIC and AVIF
- Prevents excessive iterations with malformed EXIF data
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>1 parent 3b6e0bc commit 7580e47
6 files changed
Lines changed: 970 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
| 258 | + | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments