CVSROOT: /home/x-cvs Module name: xc Changes by: [EMAIL PROTECTED] 03/02/08 22:29:22
Log message: Fix problem in XkbInitKeyboardDeviceStruct(). Thanks to David Dawes for telling about the problem, caused by a previous patch by me. I also added a comment in the code explaining the reason the strings need to be duplicated. The problem is that XkbInitKeyboardDeviceStruct() is an "entry point" for xkb, and the function arguments are not guaranteed to be allocated, they may point to static strings, command line parameters, etc. In the worst case, there will be a "pseudo leak" of six strings that are used only when the server is initialized; the strings are reachable from xf86Info.xkbxxx, or equivalent data structure for xwin, xnest, etc. Modified files: xc/programs/Xserver/xkb/: xkbInit.c Revision Changes Path 3.26 +20 -13 xc/programs/Xserver/xkb/xkbInit.c _______________________________________________ Cvs-commit mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/cvs-commit