Bug 12966 - Overlapping data buffer
Summary: Overlapping data buffer
Status: RESOLVED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alexey Dobriyan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-29 00:09 UTC by Martin Ettl
Modified: 2009-10-16 00:56 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.29
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Martin Ettl 2009-03-29 00:09:38 UTC
Hi,

i checked the sources with a static code analysis tool and found a few issues:

[linux-2.6.29/arch/x86/kernel/cpu/intel_cacheinfo.c:721]: (error) Overlapping data buffer buf
[linux-2.6.29/arch/x86/kernel/cpu/intel_cacheinfo.c:723]: (error) Overlapping data buffer buf
[linux-2.6.29/arch/x86/kernel/cpu/intel_cacheinfo.c:727]: (error) Overlapping data buffer buf


Line 721: ret += sprintf(buf, "%sEntry: %d\n", buf, i);
At line 723 and 727 the same issue happens!

Best regards

Ettl Martin
Comment 1 Sankar P 2009-05-12 10:03:51 UTC
I will look into this.
Comment 2 Alexey Dobriyan 2009-10-16 00:56:37 UTC
commit f8b201fc7110c3673437254e8ba02451461ece0b
"x86: cacheinfo: replace sysfs interface for cache_disable feature"

Note You need to log in before you can comment on or make changes to this bug.