Thread (2 messages) flat view 2 messages, 2 authors, 2021-10-19

Re: [PATCH V2] Fix 2 dc stream buffer

From: Jes Sorensen <hidden>
Date: 2021-10-19 06:58:16

On 10/14/21 12:02 PM, Nigel Croxon wrote:
To meet requirements of Common Criteria certification vulnerablility
assessment. Static code analysis has been run and found the following
Error: DC.STREAM_BUFFER (CWE-120): [#def46]
mdadm-4.2: dont_call: "fscanf" assumes an arbitrarily
long string, so callers must use correct precision specifiers or
never use "fscanf".

The change is to define a value for string %s.

V2: Tighten the value in policy.c to match the limit of the metadata.
Add a change to policy_save_path() to use correct precision on the
fscanf call.

Signed-off-by: Nigel Croxon <redacted>
---
 Monitor.c | 2 +-
 policy.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Applied

Thanks
Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help