intel_bios_reader Segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xf86-video-intel |
Fix Released
|
Low
|
|||
intel-gpu-tools (Ubuntu) |
Fix Released
|
Medium
|
Bryce Harrington |
Bug Description
Binary package hint: intel-gpu-tools
/usr/bin/
test case :
emanuel@
7277594a2b95889
emanuel@
VBT vers: 295.45
Segmentation fault
under GDB :
Program received signal SIGSEGV, Segmentation fault.
*__GI_strncpy (s1=0xbffff3ea "\377\277)
s2=0xd8540589 <Address 0xd8540589 out of bounds>, n=16) at strncpy.c:42
42 strncpy.c: No such file or directory.
in strncpy.c
the call to strncpy :
strncpy(signature, (char *)bdb->signature, 16);
after compiling from source code and running under GDB :
(gdb) p bdb->signature
Cannot access memory at address 0xd8540589
Related branches
Changed in intel-gpu-tools (Ubuntu): | |
status: | New → Triaged |
status: | Triaged → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Bryce Harrington (bryce) |
tags: | added: precise |
Changed in xserver-xorg-video-intel: | |
importance: | Unknown → Low |
status: | Unknown → Confirmed |
Changed in xserver-xorg-video-intel: | |
status: | Confirmed → Fix Released |
(gdb) run ./tools/ intel_bios_ reader src/intel- gpu-tools- 1.1/tools/ intel_bios_ reader ./tools/ intel_bios_ reader
Starting program: /home/bryce/
VBT vers: 295.45
Program received signal SIGSEGV, Segmentation fault. linux-gnu/ libc.so. 6 linux-gnu/ libc.so. 6 reader. c:903 intel_bios_ reader" 303*\000\ 364\277* \000U<\ 026\000i\ 254\004\ b"
devid_ string = 0x0
0x001ab21c in strncpy () from /lib/i386-
(gdb) bt full
#0 0x001ab21c in strncpy () from /lib/i386-
No symbol table info available.
#1 0x0804ab16 in main (argc=2, argv=0xbffff274) at intel_bios_
fd = 7
vbt = 0xb7ff6f84
vbt_off = 16260
bdb_off = 1981846470
i = 16260
filename = 0xbffff40d "./tools/
finfo = {st_dev = 2049, __pad1 = 0, st_ino = 5382091, st_mode = 33277, st_nlink = 1,
st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0, st_size = 41780, st_blksize = 4096,
st_blocks = 88, st_atim = {tv_sec = 1327433593, tv_nsec = 136981917}, st_mtim = {
tv_sec = 1327426685, tv_nsec = 802744723}, st_ctim = {tv_sec = 1327426685,
tv_nsec = 802744723}, __unused4 = 0, __unused5 = 0}
block = 0x0
signature = "\000$\