Module Name: xsrc Committed By: martin Date: Mon Dec 7 20:20:15 UTC 2020
Modified Files: xsrc/external/mit/libX11/dist/modules/im/ximcp [netbsd-8]: imRmAttr.c Log Message: Apply patch, requested by maya in ticket #1634: external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c (patch) PR 55640: fix off by one in X Input Method. To generate a diff of this commit: cvs rdiff -u -r1.1.1.8.2.1 -r1.1.1.8.2.2 \ xsrc/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c diff -u xsrc/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c:1.1.1.8.2.1 xsrc/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c:1.1.1.8.2.2 --- xsrc/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c:1.1.1.8.2.1 Wed Aug 5 14:10:16 2020 +++ xsrc/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c Mon Dec 7 20:20:15 2020 @@ -1407,7 +1407,7 @@ _XimCountNumberOfAttr( *names_len = 0; while (total > min_len) { len = attr[2]; - if (len >= (total - min_len)) { + if (len > (total - min_len)) { return 0; } *names_len += (len + 1);