Bug#465186: ocp: Should not use PAGESIZE in the source code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#465186: ocp: Should not use PAGESIZE in the source code

Guillem Jover
Package: ocp
Version: 1:0.1.15-1
Severity: normal

Hi,

The source code uses PAGESIZE from the system or fallsback to
hardcoding it to 4096 (which is what will happen on currently).

This is wrong as the size is not static and is only known at runtime.
The Linux kernel headers were fixed recently to stop exporting this
variable as this should not have been exported ever. The code should
switch to use 'sysconf(_SC_PAGESIZE)' instead.

regards,
guillem



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]