Red Hat Bugzilla – Bug 104321
llseek dangerous message appears during build process
Last modified: 2007-04-18 12:57:32 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030722
Description of problem:
When building the util-linux package, the warning message appears:
+ cd rescuept
+ cc -O2 -g -pipe -march=i686 -o rescuept rescuept.c
/tmp/cc5oZ991.o(.text+0x35): In function `read_sectors':
/usr/src/redhat/BUILD/util-linux-2.11y/rescuept/rescuept.c:59: the `llseek'
function may be dangerous; use `lseek64' instead.
+ cd ..
I'm not sure if there is a potential vulnerability in the rescuept
program/library as a result, but it may want to be looked at.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. see description
Actual Results: You see the warning in the build process above.
Expected Results: No warning message saying that a particular function being
used is considered dangerous.
Note the use of the word "may" in the warning message. Really doesn't matter...
If you have a chance, a patch would be great.
Patched to just use plain lseek and compile with _FILE_OFFSET_BITS=64