From: Taro Yamada
The string written to the buffer by read() is not null-terminated,
but currently drmParsePciBusInfo() places null character only at the end of the
buffer, not at the end of the
string.
As a result, the string passed to sscanf() contains an uninitialized value.
This patch chang
This is my first time to sending a patch to the mailing list.
So, I'm sorry if I did something wrong.
The function drmParsePciBusInfo() in xf86drm.c reads the contents of the file
"/sys/dev/char/x:y/device/uevent"
into the buffer.
The string written to the buffer by read() is not null-terminate
From: Taro Yamada
The string written to the buffer by read() is not null-terminated,
but currently drmParsePciBusInfo() places null character only at the end of the
buffer, not at the end of the
string.
As a result, the string passed to sscanf() contains an uninitialized value.
This patch chang
This is my first time to sending a patch to the mailing list.
So, I'm sorry if I did something wrong.
The function drmParsePciBusInfo() in xf86drm.c reads the contents of the file
"/sys/dev/char/x:y/device/uevent"
into the buffer.
The string written to the buffer by read() is not null-terminate