Bug 15862

Summary: Devmem allocates more memory than it needs
Product: Busybox Reporter: Mehmet BAL <tm.mehmetbal>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.35.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Mehmet BAL 2023-11-20 20:42:14 UTC
In devmem program, check line 76.

Width local variable holds length in bit(s). However offset_in_page and page_size local variables holds value in byte(s). When check that read/write address block spans the two pages,  the left and right operands of the greater operator must be in units of bit(s) or byte(s).

"if (offset_in_page + width > page_size)" in devmem program, source code line 76.