Skip to content

FICUUIDBytesFromMD5HashOfString causing crash #11

@robmontesinos

Description

@robmontesinos

I am getting a crash on the MD5 line in FICDPhoto.m -> line 170

The crash occurred on scrolling a tableview with images from website after about four screen - fast scrolling the first time and crashed on slow scrolling. exc_bad_access - and then on another attempt without changing anything, it did not crash at all and the scrolling was much faster than what I had before FastImageCache.

Any help would be appreciated.

pragma mark - FICImageCacheEntity

  • (NSString *)UUID {
    if (_UUID == nil) {
    // MD5 hashing is expensive enough that we only want to do it once - CRASH LINE BELOW
    CFUUIDBytes UUIDBytes = FICUUIDBytesFromMD5HashOfString([_sourceImageURL absoluteString]);
    _UUID = FICStringWithUUIDBytes(UUIDBytes);
    }

    return _UUID;
    }

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