Commit 0e4fc34
Fix wrong variable in findXmp XMP trailer search loop
Line 182 checks data[xmpPos] instead of data[trailerPos]. The
variable xmpPos is constant at this point, so the early-exit
condition is never true. The loop checks every byte position
against all XMP trailer patterns unnecessarily.
Use data[trailerPos] to restore the intended early-exit behavior.
(cherry picked from commit c754877)1 parent 2cd987a commit 0e4fc34
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments