Skip to content

A map causes a crash #11

@neivv

Description

@neivv

The following map will cause scm-extractor to throw an uncaught exception with the following message:

C:\Jotakin\src\scm-extractor\index.js:596
    if (b < this._hashTable.length && this._hashTable[b].blockIndex === 0xFFFFFFFF) {
                                                        ^

TypeError: Cannot read property 'blockIndex' of undefined
    at ScmExtractor._findBlockIndex (C:/Jotakin/src/scm-extractor/index.js:603:39)
    at ScmExtractor._readFiles (C:/Jotakin/src/scm-extractor/index.js:467:34)
    at ScmExtractor._process (C:/Jotakin/src/scm-extractor/index.js:234:16)
    at ScmExtractor._flush (C:/Jotakin/src/scm-extractor/index.js:259:12)
    at ScmExtractor.<anonymous> (_stream_transform.js:141:12)
    at Object.onceWrapper (events.js:314:30)
    at emitNone (events.js:105:13)
    at ScmExtractor.emit (events.js:207:7)
    at prefinish (_stream_writable.js:568:14)
    at finishMaybe (_stream_writable.js:576:5)

https://drive.google.com/open?id=0B76qCUchMgsnZDhaQnZzNDZfWVk

(It also doesn't work in 1.18.8, but 1.16.1 loads it fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions