Skip to content

Overlapping Access #5

Open
Open
@zaccadams

Description

@zaccadams

Hi,
I'm receiving the build error in Swift 4.2
Overlapping accesses to 'ct', but modification requires exclusive access; consider copying to a local variable

Any suggestions on how to fix. This is on line 140.

let status = ct.withUnsafeMutableBytes { ctRaw in
            dataMutable.withUnsafeMutableBytes { dataRaw in
                keyMutable.withUnsafeMutableBytes{ keyRaw in
                    CCCrypt(operation, algorithm, options, keyRaw, key.count, nil, dataRaw, data.count, ctRaw, ct.count, &num)
                }
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions