Skip to content

safeJsonFloat #193

@k3ldar

Description

@k3ldar

safeJsonFloat() documents an outputSize parameter, but the non-null/non-NaN path uses dtostrf() which has no length parameter and can overflow the provided buffer for large magnitudes / higher precision. Consider switching to a bounded formatter where available (e.g., snprintf with %.*f on ESP32), or at minimum ensure the result is truncated/terminated within outputSize and clearly document required minimum buffer sizes.

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