Bug 13435

Summary: detected overlapping data buffer in linux-2.6.29.3
Product: Drivers Reporter: Martin Ettl (ettl.martin)
Component: Video(Other)Assignee: drivers_video-other
Status: RESOLVED CODE_FIX    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

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