summaryrefslogtreecommitdiffstats
path: root/src/if_xcmdsrv.c
AgeCommit message (Collapse)Author
2024-01-04patch 9.1.0006: is*() and to*() function may be unsafev9.1.0006Keith Thompson
Problem: is*() and to*() function may be unsafe Solution: Add SAFE_* macros and start using those instead (Keith Thompson) Use SAFE_() macros for is*() and to*() functions The standard is*() and to*() functions declared in <ctype.h> have undefined behavior for negative arguments other than EOF. If plain char is signed, passing an unchecked value from argv for from user input to one of these functions has undefined behavior. Solution: Add SAFE_*() macros that cast the argument to unsigned char. Most implementations behave sanely for negative arguments, and most character values in practice are non-negative, but it's still best to avoid undefined behavior. The change from #13347 has been omitted, as this has already been separately fixed in commit ac709e2fc0db6d31abb7da96f743c40956b60c3a (v9.0.2054) fixes: #13332 closes: #13347 Signed-off-by: Keith Thompson <Keith.S.Thompson@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-01-12patch 9.0.1183: code is indented more than necessaryv9.0.1183Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11805)
2022-11-30patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977Bram Moolenaar
Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
2022-09-18patch 9.0.0498: various small issuesv9.0.0498Bram Moolenaar
Problem: Various small issues. Solution: Various small fixes.
2022-03-20patch 8.2.4595: X11: using --remote-wait may keep the CPU busyv8.2.4595jsecchiero
Problem: X11: using --remote-wait may keep the CPU busy. Solution: Set the timeout for select() on every call. (Jacopo Secchiero, closes #9973)
2022-01-02patch 8.2.3987: error messages are spread outv8.2.3987Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3975: error messages are spread outv8.2.3975Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-27patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle
Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
2021-11-29patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar
Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
2019-12-04patch 8.1.2387: using old C style commentsv8.1.2387Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-11-17patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar
Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
2019-05-28patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar
Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
2019-05-24patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar
Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
2019-01-24patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
2019-01-19patch 8.1.0781: build error when using if_xcmdsrv.cv8.1.0781Bram Moolenaar
Problem: Build error when using if_xcmdsrv.c. Solution: Add missing part of 8.1.0779.
2019-01-13patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar
Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
2018-09-30patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar
Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
2018-03-04patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
2018-02-27patch 8.0.1550: various small problems in source filesv8.0.1550Bram Moolenaar
Problem: Various small problems in source files. Solution: Fix the problems.
2017-09-09patch 8.0.1079: memory leak when remote_foreground() failsv8.0.1079Bram Moolenaar
Problem: Memory leak when remote_foreground() fails. Solution: Free the error message.
2017-03-19patch 8.0.0492: a failing client-server request can make Vim hangv8.0.0492Bram Moolenaar
Problem: A failing client-server request can make Vim hang. Solution: Add a timeout argument to functions that wait.
2017-03-18patch 8.0.0477: the client-server test may hang when failingv8.0.0477Bram Moolenaar
Problem: The client-server test may hang when failing. Solution: Set a timer. Add assert_report()
2017-03-18patch 8.0.0475: not enough testing for the client-server featurev8.0.0475Bram Moolenaar
Problem: Not enough testing for the client-server feature. Solution: Add more tests. Add the remote_startserver() function. Fix that a locally evaluated expression uses function-local variables.
2017-03-16patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar
Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
2017-02-23patch 8.0.0360: sometimes VimL is used instead of "Vim script"v8.0.0360Bram Moolenaar
Problem: Sometimes VimL is used, which is confusing. Solution: Consistently use "Vim script". (Hirohito Higashi)
2016-08-29patch 7.4.2293v7.4.2293Bram Moolenaar
Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-03-25patch 7.4.1655v7.4.1655Bram Moolenaar
Problem: remote_expr() hangs. (Ramel) Solution: Check for messages in the waiting loop.
2016-01-30patch 7.4.1208v7.4.1208Bram Moolenaar
Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
2016-01-29patch 7.4.1198v7.4.1198Bram Moolenaar
Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
2015-10-13patch 7.4.897v7.4.897Bram Moolenaar
Problem: Freeze and crash when there is a sleep in a remote command. (Karl Yngve Lervåg) Solution: Remove a message from the queue before dealing with it. (James Kolb)
2015-09-17patch 7.4.873v7.4.873Bram Moolenaar
Problem: Compiler warning for unused variable. (Tony Mechelynck) Solution: Remove the variable. Also fix int vs long_u mixup.
2015-09-15patch 7.4.866v7.4.866Bram Moolenaar
Problem: Crash when changing the 'tags' option from a remote command. (Benjamin Fritz) Solution: Instead of executing messages immediately, use a queue, like for netbeans. (James Kolb)
2015-08-11patch 7.4.822v7.4.822Bram Moolenaar
Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
2012-07-10updated for version 7.3.595v7.3.595Bram Moolenaar
Problem: The X command server responds slowly Solution: Change the loop that waits for replies. (Brian Burns)
2012-07-10updated for version 7.3.594v7.3.594Bram Moolenaar
Problem: The X command server doesn't work perfectly. It sends an empty reply for as-keys requests. Solution: Remove duplicate ga_init2(). Do not send a reply for as-keys requests. (Brian Burns)
2010-03-10updated for version 7.2.392v7.2.392Bram Moolenaar
Problem: Netbeans hangs reading from a socket at the maximum block size. Solution: Use select() or poll(). (Xavier de Gaye)
2009-05-16updated for version 7.2-177v7.2.177Bram Moolenaar
2008-11-12updated for version 7.2-038v7.2.038Bram Moolenaar
2008-08-06updated for version 7.2c-000v7.2c.000Bram Moolenaar
2007-05-10updated for version 7.1bBram Moolenaar
2007-05-05updated for version 7.1aBram Moolenaar
2006-04-05updated for version 7.0c10v7.0c10Bram Moolenaar
2005-09-01updated for version 7.0140v7.0140Bram Moolenaar
2005-08-29updated for version 7.0138v7.0138Bram Moolenaar
2004-12-27updated for version 7.0025v7.0025Bram Moolenaar
2004-12-19updated for version 7.0023v7.0023Bram Moolenaar
2004-10-11updated for version 7.0018Bram Moolenaar
2004-07-29updated for version 7.0013Bram Moolenaar