Swift

Swift : Privacy violation (Unmanaged memory usage)

Overview

The contents of the String object can not be deleted from memory by the software. Sensitive data leak is possible.

If sensitive data (passwords, credit card numbers, etc.) is not deleted from memory immediately after use, leak is possible. String objects are immutable; their values can only be removed by the garbage collector. The garbage collector does not run until the virtual machine runs out of memory. Memory dump created in the case of process emergency stop may contain confidential information.

MEDIUM

DerScanner Severity Score

Check your Swift code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.