Skip to content

Crash trying to read/decode large Big TIFF File #3984

@snowzach

Description

@snowzach

Questions, enhancements, tips, etc.

Bug report

Describe the bug
When trying to thumbnail or get the headers for a very large BTF file it give an error and crashes/exits.

To Reproduce
Steps to reproduce the behavior:

Download this huge BTF file (warning, 11-12ish gig)
https://cf.10xgenomics.com/samples/spatial-exp/3.0.0/Visium_HD_Human_Colon_Cancer/Visium_HD_Human_Colon_Cancer_tissue_image.btf

Try to use vipsheader (or vipsthumbnail) on it by piping..

cat Visium_HD_Human_Colon_Cancer_tissue_image.btf | vipsheader -a stdin

(vipsheader:28): GLib-ERROR **: 16:00:14.638: adding 4096 to array would overflow
Trace/breakpoint trap (core dumped)

Expected behavior
Work as expected and print out information or thumbnail.

Actual behavior
Traps and coredumps.

Environment
Tried in ubuntu 22 with 8.12.1 and Alpine latest with 8.15.0-r0

  • OS: [e.g. Ubuntu 16.04, MacOS 10.13]
  • Vips: [e.g. 8.8, 8.9, etc]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions