Keith Thompson
184f71cc68
patch 9.1.0006: is*() and to*() function may be unsafe
...
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>
2024-01-04 21:19:04 +01:00
Yegappan Lakshmanan
0233bdfa2b
patch 9.0.1183: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11805 )
2023-01-12 12:33:30 +00:00
Bram Moolenaar
4c5678ff0c
patch 9.0.0977: it is not easy to see what client-server commands are doing
...
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-11-30 18:12:19 +00:00
Bram Moolenaar
747f110420
patch 9.0.0498: various small issues
...
Problem: Various small issues.
Solution: Various small fixes.
2022-09-18 13:06:41 +01:00
jsecchiero
6f95363677
patch 8.2.4595: X11: using --remote-wait may keep the CPU busy
...
Problem: X11: using --remote-wait may keep the CPU busy.
Solution: Set the timeout for select() on every call. (Jacopo Secchiero,
closes #9973 )
2022-03-20 11:07:17 +00:00
Bram Moolenaar
1d423ef75f
patch 8.2.3987: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 21:26:16 +00:00
Bram Moolenaar
cbadefe25a
patch 8.2.3975: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-01 19:33:50 +00:00
Bram Moolenaar
74409f6279
patch 8.2.3970: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 15:58:22 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
2021-12-27 17:21:41 +00:00
Bram Moolenaar
651fca85c7
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
...
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
2021-11-29 20:39:38 +00:00
Bram Moolenaar
2ab2e8608f
patch 8.1.2387: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-04 21:24:53 +01:00
Bram Moolenaar
eda1da0c9a
patch 8.1.2313: debugging where a delay comes from is not easy
...
Problem: Debugging where a delay comes from is not easy.
Solution: Use different values when calling ui_delay().
2019-11-17 17:06:33 +01:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
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-28 23:08:19 +02:00
Bram Moolenaar
964b3746b9
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
...
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-05-24 18:54:09 +02:00
Bram Moolenaar
fc3abf47fb
patch 8.1.0806: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 2.
2019-01-24 15:54:21 +01:00
Bram Moolenaar
a502caab8b
patch 8.1.0781: build error when using if_xcmdsrv.c
...
Problem: Build error when using if_xcmdsrv.c.
Solution: Add missing part of 8.1.0779.
2019-01-19 18:23:41 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
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.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
6dff58f15c
patch 8.1.0443: unnecessary static function prototypes
...
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
2018-09-30 21:43:26 +02:00
Bram Moolenaar
f2bd8ef2b4
patch 8.0.1564: too many #ifdefs
...
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-03-04 18:08:14 +01:00
Bram Moolenaar
792f0e3659
patch 8.0.1550: various small problems in source files
...
Problem: Various small problems in source files.
Solution: Fix the problems.
2018-02-27 17:27:13 +01:00
Bram Moolenaar
09d6c3818d
patch 8.0.1079: memory leak when remote_foreground() fails
...
Problem: Memory leak when remote_foreground() fails.
Solution: Free the error message.
2017-09-09 16:25:54 +02:00
Bram Moolenaar
81b9d0bd5c
patch 8.0.0492: a failing client-server request can make Vim hang
...
Problem: A failing client-server request can make Vim hang.
Solution: Add a timeout argument to functions that wait.
2017-03-19 21:20:53 +01:00
Bram Moolenaar
42205551b1
patch 8.0.0477: the client-server test may hang when failing
...
Problem: The client-server test may hang when failing.
Solution: Set a timer. Add assert_report()
2017-03-18 19:42:22 +01:00
Bram Moolenaar
7416f3e73a
patch 8.0.0475: not enough testing for the client-server feature
...
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-18 18:10:13 +01:00
Bram Moolenaar
8820b48654
patch 8.0.0466: still macros that should be all-caps
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
2017-03-16 17:23:31 +01:00
Bram Moolenaar
b544f3c81f
patch 8.0.0360: sometimes VimL is used instead of "Vim script"
...
Problem: Sometimes VimL is used, which is confusing.
Solution: Consistently use "Vim script". (Hirohito Higashi)
2017-02-23 19:03:28 +01:00
Bram Moolenaar
edf3f97ae2
patch 7.4.2293
...
Problem: Modelines in source code are inconsistant.
Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-29 22:49:24 +02:00
Bram Moolenaar
1e7885abe8
patch 7.4.1655
...
Problem: remote_expr() hangs. (Ramel)
Solution: Check for messages in the waiting loop.
2016-03-25 19:03:03 +01:00
Bram Moolenaar
68c2f638e6
patch 7.4.1208
...
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
2016-01-30 17:24:07 +01:00
Bram Moolenaar
92b8b2d307
patch 7.4.1198
...
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
Also remove use of HAVE_STDARG_H.
2016-01-29 22:36:45 +01:00
Bram Moolenaar
4e86150ec5
patch 7.4.897
...
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-10-13 20:21:49 +02:00
Bram Moolenaar
b8603882b1
patch 7.4.873
...
Problem: Compiler warning for unused variable. (Tony Mechelynck)
Solution: Remove the variable. Also fix int vs long_u mixup.
2015-09-17 23:20:42 +02:00
Bram Moolenaar
93c88e0f6a
patch 7.4.866
...
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-09-15 14:12:05 +02:00
Bram Moolenaar
cde8854730
patch 7.4.822
...
Problem: More problems reported by coverity.
Solution: Avoid the warnings. (Christian Brabandt)
2015-08-11 19:14:00 +02:00
Bram Moolenaar
773c1ef81b
updated for version 7.3.595
...
Problem: The X command server responds slowly
Solution: Change the loop that waits for replies. (Brian Burns)
2012-07-10 14:56:45 +02:00
Bram Moolenaar
52bf469f6f
updated for version 7.3.594
...
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)
2012-07-10 14:25:04 +02:00
Bram Moolenaar
581f6dc94d
updated for version 7.2.392
...
Problem: Netbeans hangs reading from a socket at the maximum block size.
Solution: Use select() or poll(). (Xavier de Gaye)
2010-03-10 16:12:48 +01:00
Bram Moolenaar
af0167fa39
updated for version 7.2-177
2009-05-16 15:31:32 +00:00
Bram Moolenaar
fbc0cfad0c
updated for version 7.2-038
2008-11-12 13:52:46 +00:00
Bram Moolenaar
e37d50a5de
updated for version 7.2c-000
2008-08-06 17:06:04 +00:00
Bram Moolenaar
82038d7312
updated for version 7.1b
2007-05-10 17:15:45 +00:00
Bram Moolenaar
9964e468c0
updated for version 7.1a
2007-05-05 17:54:07 +00:00
Bram Moolenaar
910f66f90c
updated for version 7.0c10
2006-04-05 20:41:53 +00:00
Bram Moolenaar
e344bead3e
updated for version 7.0140
2005-09-01 20:46:49 +00:00
Bram Moolenaar
ac6e65f88d
updated for version 7.0138
2005-08-29 22:25:38 +00:00
Bram Moolenaar
86b6835997
updated for version 7.0025
2004-12-27 21:59:20 +00:00
Bram Moolenaar
1cd871b534
updated for version 7.0023
2004-12-19 22:46:22 +00:00
Bram Moolenaar
7171abea1a
updated for version 7.0018
2004-10-11 10:06:20 +00:00
Bram Moolenaar
269ec658f0
updated for version 7.0013
2004-07-29 08:43:53 +00:00