Skip to content

Commit

Permalink
fix: Fix TIFF out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor-pelykh committed Nov 1, 2024
1 parent ea94630 commit 4ed4249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/formats/tiff/tiff-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,9 @@ export class TiffImage {

for (let y = 0, py = outY; y < this._tileHeight; ++y, ++py) {
for (let x = 0, px = outX; x < this._tileWidth; ++x, ++px) {
if (byteData.isEOS) {
break;
}
if (this._samplesPerPixel === 1) {
if (this._sampleFormat === TiffFormat.float) {
let sample = 0;
Expand Down

0 comments on commit 4ed4249

Please sign in to comment.