Bug 13435 - detected overlapping data buffer in linux-2.6.29.3
Summary: detected overlapping data buffer in linux-2.6.29.3
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 12:33 UTC by Martin Ettl
Modified: 2009-06-03 14:54 UTC (History)
1 user (show)

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


Attachments

Description Martin Ettl 2009-06-03 12:33:55 UTC
Hi friends,

i detected an overlapping data buffer at file using cppcheck (a static code analyis tool):linux-2.6.29.3/drivers/media/video/se401.c

Take a look into the code:
line 1272: /// This is dangerous!!!!!
	sprintf (temp, "%s Sizes:", temp); 
line 1274: /// This is dangerous, too!!!
	sprintf(temp, "%s %dx%d", temp, se401->width[i], se401->height[i]);


cppcheck brings the following output:

[linux-2.6.29.3/drivers/media/video/se401.c:1272]: (error) Overlapping data buffer temp
[linux-2.6.29.3/drivers/media/video/se401.c:1274]: (error) Overlapping data buffer temp


Best regards

Ettl Martin

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