Scanf without field width limit specified

Bug #1863090 reported by Karl Vestin on 2020-02-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Undecided
Unassigned

Bug Description

The Codacy static code analysis reports a small number of cases where scanf is used without a specific field width limit. This can potentially cause crashes.

Pattern: scanf() without field width limits can crash with huge input data. (ccpcheck)

Codacy link: https://app.codacy.com/gh/epics-base/epics-base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIyNDAiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers