Skip to content

VeraCode issue in FABByteUtility.m  #4873

@security-v

Description

@security-v

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.3
  • Firebase SDK version: 6.13.0
  • Firebase Component: Fabric (Auth, Core, Database, Firestore, Messaging, Storage, etc)
  • Component version: 1.10.2
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

VeraCode has found a low severity issues in Fabric/Base/Fabric/Settings/Utilities/FABByteUtility.m , called "Unchecked error condition " and "Use after Free".
Unchecked error condition issue states that return value from malloc() is not been checked before been used in subsequent call.
Use after free issue states that variable reference occurs after its memory allocation has been freed.

Relevant Code:

Unchecked error condition

Fabric/Base/Fabric/Settings/Utilities/FABByteUtility.m [Path 1: FABNSDataPrettyDescription, line 55 (1 step)]

Use after free

Fabric/Base/Fabric/Settings/Utilities/FABByteUtility.m [Path 1: FABNSDataPrettyDescription, line 64 (1 step)]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions