Bram Moolenaar
c7d2ff2ca0
patch 9.0.0384: Covertity still complains about using return value of getc()
...
Problem: Covertity still complains about using return value of getc().
Solution: Check for EOF.
2022-09-05 11:04:14 +01:00
Bram Moolenaar
963ab26842
patch 9.0.0383: Coverity complains about unused value
...
Problem: Coverity complains about unused value.
Solution: Use the value.
2022-09-05 10:55:27 +01:00
Bram Moolenaar
c1eb131c9e
patch 9.0.0378: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize it.
2022-09-04 13:45:15 +01:00
Bram Moolenaar
3c7707680f
patch 9.0.0374: Coverity still complains about dropping sign of character
...
Problem: Coverity still complains about dropping sign of character.
Solution: Add intermediate variable.
2022-09-04 11:55:19 +01:00
Bram Moolenaar
0a6bb59f6b
patch 9.0.0367: Coverity complains about dropping sign of character
...
Problem: Coverity complains about dropping sign of character.
Solution: Add explicit type cast.
2022-09-03 12:53:20 +01:00
Bram Moolenaar
6669de1b23
patch 9.0.0240: crash when using ":mkspell" with an empty .dic file
...
Problem: Crash when using ":mkspell" with an empty .dic file.
Solution: Check for an empty word tree.
2022-08-21 20:33:47 +01:00
Bram Moolenaar
a4d158b3c8
patch 9.0.0206: redraw flags are not named specifically
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-14 14:17:45 +01:00
K.Takata
2ebcc35826
patch 9.0.0052: "zG" may throw an error if invalid character follows
...
Problem: "zG" may throw an error if invalid character follows.
Solution: Pass the word length to valid_spell_word(). (Ken Takata,
closes #10737 )
2022-07-14 17:25:14 +01:00
Bram Moolenaar
5e59ea54c0
patch 9.0.0021: invalid memory access when adding word to spell word list
...
Problem: Invalid memory access when adding word with a control character to
the internal spell word list.
Solution: Disallow adding a word with control characters or a trailing
slash.
2022-07-01 22:26:20 +01:00
Bram Moolenaar
7c824682d2
patch 8.2.4919: can add invalid bytes with :spellgood
...
Problem: Can add invalid bytes with :spellgood.
Solution: Check for a valid word string.
2022-05-08 22:32:58 +01:00
Bram Moolenaar
31e5c60a68
patch 8.2.4753: error from setting an option is silently ignored
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
2022-04-15 13:53:33 +01:00
Bram Moolenaar
4dea2d92e4
patch 8.2.4653: "import autoload" does not check the file name
...
Problem: "import autoload" does not check the file name.
Solution: Give an error if the file is not readable. (closes #10049 )
2022-03-31 11:37:57 +01:00
Bram Moolenaar
416b5f4894
patch 8.2.4473: Coverity warnds for not checking return value of ftell()
...
Problem: Coverity warnds for not checking return value of ftell().
Solution: Bail out if ftell() returns a negative value.
2022-02-25 21:47:48 +00:00
kylo252
ae6f1d8b14
patch 8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros. (closes #9788 )
2022-02-16 19:24:07 +00:00
Rob Pilling
8196e94a8b
patch 8.2.4343: when reloading not all properties are detected
...
Problem: When reloading not all properties are detected.
Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes #9579 )
2022-02-11 15:12:10 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
420fabcd4f
patch 8.2.4241: some type casts are redundant
...
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643 )
2022-01-28 15:28:04 +00:00
Bram Moolenaar
04935fb17e
patch 8.2.4043: using int for second argument of ga_init2()
...
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-08 16:19:22 +00:00
Bram Moolenaar
9d00e4a814
patch 8.2.4010: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 17:49:15 +00:00
Bram Moolenaar
677658ae49
patch 8.2.4008: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 16:09:06 +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
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
eb822a280c
patch 8.2.3955: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 15:09:27 +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
=?UTF-8?q?Bj=C3=B6rn=20Linse?=
1daedc8381
patch 8.2.3777: spell file write error not checked
...
Problem: Spell file write error not checked.
Solution: Check writing the prefix conditions. (Bjorn Linse, closes #9323 )
2021-12-10 20:39:17 +00:00
ichizok
dee78e1ce8
patch 8.2.3770: new compiler warnings from clang-12 and clang-13
...
Problem: New compiler warnings from clang-12 and clang-13.
Solution: Adjust CI and suppress some warnings. (Ozaki Kiichi, closes #9314 )
2021-12-09 21:08:01 +00:00
Bram Moolenaar
40bcec1bac
patch 8.2.3750: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 22:19:27 +00:00
Bram Moolenaar
b85d3627d9
patch 8.2.3328: Coverity error for not checking return value
...
Problem: Coverity error for not checking return value.
Solution: Check value is not negative.
2021-08-11 15:54:59 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
4f13527598
patch 8.2.2974: Greek spell checking uses wrong case folding
...
Problem: Greek spell checking uses wrong case folding.
Solution: Fold capital sigma depending on whether it is at the end of a
word or not. (closes #299 )
2021-06-11 19:07:40 +02:00
Bram Moolenaar
2c363a2e95
patch 8.2.2462: Coverity warns for not checking for fseek() error
...
Problem: Coverity warns for not checking for fseek() error.
Solution: Give an error message if fseek() fails.
2021-02-03 20:14:23 +01:00
Bram Moolenaar
e90d63ea90
patch 8.2.1565: spellfile test sometimes fails
...
Problem: Spellfile test sometimes fails.
Solution: Check running into the end of the file.
2020-09-02 12:58:48 +02:00
Bram Moolenaar
4ad739fc05
patch 8.2.1564: a few remaining errors from ubsan
...
Problem: A few remaining errors from ubsan.
Solution: Avoid the warnings. (Dominique Pellé, closes #6837 )
2020-09-02 10:25:45 +02:00
Bram Moolenaar
9c2b06637b
patch 8.2.1560: using NULL pointers in some code
...
Problem: Using NULL pointers in some code. (James McCoy)
Solution: Avoid adding to a NULL pointer. Use byte as unsigned.
2020-09-01 19:56:15 +02:00
Bram Moolenaar
07399e7f07
patch 8.2.1521: reading past end of buffer when reading spellfile
...
Problem: Reading past end of buffer when reading spellfile. (Yegappan
Lakshmanan)
Solution: Store the byte length and check for it.
2020-08-24 20:05:50 +02:00
Bram Moolenaar
fc2a47ffc4
patch 8.2.1493: not enough test coverage for the spell file handling
...
Problem: Not enough test coverage for the spell file handling.
Solution: Add spell file tests. (Yegappan Lakshmanan, closes #6728 )
2020-08-20 15:41:55 +02:00
Bram Moolenaar
97d2f34c87
patch 8.2.1169: write NUL past allocated space using corrupted spell file
...
Problem: Write NUL past allocated space using corrupted spell file.
(Markus Vervier)
Solution: Init "c" every time.
2020-07-10 20:03:03 +02:00
Bram Moolenaar
927b7dd0fe
patch 8.2.1089: Coverity warns for pointer computation
...
Problem: Coverity warns for pointer computation.
Solution: Avoid computing a pointer to invalid memory.
2020-06-29 22:24:56 +02:00
Bram Moolenaar
408c23b079
patch 8.2.0895: :mkspell output does not mention the tree type
...
Problem: :mkspell output does not mention the tree type.
Solution: Back out increasing the limits, it has no effect. Mention the
tree being compressed. Only give a message once per second.
2020-06-03 22:15:45 +02:00
Bram Moolenaar
59f88fbf24
patch 8.2.0894: :mkspell can take very long if the word count is high
...
Problem: :mkspell can take very long if the word count is high.
Solution: Use long to avoid negative numbers. Increase the limits by 20% if
the compression did not have effect.
2020-06-03 20:51:11 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +02:00
Bram Moolenaar
db99f9f29a
patch 8.2.0436: no warnings for incorrect printf arguments
...
Problem: No warnings for incorrect printf arguments.
Solution: Fix attribute in declaration. Fix uncovered mistakes. (Dominique
Pelle, closes #5834 )
2020-03-23 22:12:22 +01:00
Bram Moolenaar
e31ee86859
patch 8.2.0098: exe stack length can be wrong without being detected
...
Problem: Exe stack length can be wrong without being detected.
Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
2020-01-07 20:59:34 +01:00
Bram Moolenaar
ce6db0273f
patch 8.2.0097: crash with autocommand and spellfile
...
Problem: Crash with autocommand and spellfile. (Tim Pope)
Solution: Do not pop exestack when not pushed. (closes #5450 )
2020-01-07 20:11:42 +01:00
Bram Moolenaar
1a47ae32cd
patch 8.2.0056: execution stack is incomplete and inefficient
...
Problem: Execution stack is incomplete and inefficient.
Solution: Introduce a proper execution stack and use it instead of
sourcing_name/sourcing_lnum. Create a string only when used.
2019-12-29 23:04:25 +01:00
Bram Moolenaar
0d6f5d9740
patch 8.1.2395: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-05 21:33:15 +01:00
Bram Moolenaar
3d2a47c782
patch 8.1.2268: spell file flag zero is not recognized
...
Problem: Spell file flag zero is not recognized.
Solution: Use -1 as an error value, so that zero can be used as a valid flag
number.
2019-11-07 20:48:42 +01:00
Bram Moolenaar
08cc374dab
patch 8.1.1838: there is :spellwrong and :spellgood but not :spellrare
...
Problem: There is :spellwrong and :spellgood but not :spellrare.
Solution: Add :spellrare. (Martin Tournoij, closes #4291 )
2019-08-11 22:51:14 +02: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