Skip to content
  • Ell's avatar
    app: avoid use-after-free when loading an XCF with corrupted layers · 42b86556
    Ell authored
    When dropping a corrupted layer while loading an XCF, make sure to
    clear the corresponding XcfInfo fields that point to it, so that
    it's not erroneously used later, as we now continue loading the
    image even after corrupted layers are encountered.
    
    See, for example, issue #4643, for a corrputed XCF file affected by
    this.
    
    (cherry picked from commit d53e701d)
    42b86556