summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoris <is>2012-10-15 15:29:09 +0000
committeris <is>2012-10-15 15:29:09 +0000
commit5ac01fee5b1067795268825d02f7db0b095e2b2b (patch)
tree74041fd54243787bed043879273a55c95842be6b /lang
parent613ed91f1e7667da99882a03f36ed96c092d5c53 (diff)
downloadpkgsrc-5ac01fee5b1067795268825d02f7db0b095e2b2b.tar.gz
xlock -mode dclock would segfault on OSes with sizeof(time_t)>sizeof(long);
this includes NetBSD-6 on 32bit systems. As a result, xlock -mode random (the default) would eventually unlock the screen, without the user being aware of this (as she/he's can be presumed to have left the monitor). The reason was that some variables in dclock.c were declared long, but contain essentially time_t values. In on case, a pointer to such a variable was casted to (struct time_t *) and passed to localtime(), and the resulting pointer is not checked for error before being used. The variables have been changed to time_t and the typecast has been removed.
Diffstat (limited to 'lang')
0 files changed, 0 insertions, 0 deletions