Skip to content

Klocwork issue in stdlib_noniso.cpp #143

Closed
@bbaltz505

Description

@bbaltz505

In cores/arduino/stdlib_noniso.cpp (line 153):

function 'sprintf' possibly accepts format string that may be influenced by user, causing format string vulnerability. Undefined string lengths can lead to buffer overflows and potential exploitation by attackers. Use a defined value for string lengths.

char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
   ...
   sprintf(sout, fmt, val);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions