Re: [PATCH V2] Fix 2 dc stream buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <ncroxon@xxxxxxxxxx>
> ---
>  Monitor.c | 2 +-
>  policy.c  | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied

Thanks
Jes




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux