Skip to content

replaced some emsg() with iemsg() for internal errors#8383

Closed
dpelle wants to merge 1 commit intovim:masterfrom
dpelle:emsg-should-be-iemsg
Closed

replaced some emsg() with iemsg() for internal errors#8383
dpelle wants to merge 1 commit intovim:masterfrom
dpelle:emsg-should-be-iemsg

Conversation

@dpelle
Copy link
Member

@dpelle dpelle commented Jun 14, 2021

Using iemsg() improves the chance of detecting bugs
for users who build with -DABORT_ON_INTERNAL_ERROR in
particular for developers using fuzzing.

Using iemsg() improves the chance of detecting bugs
for users who build with -DABORT_ON_INTERNAL_ERROR in
particular for developers using fuzzing.
@codecov
Copy link

codecov bot commented Jun 14, 2021

Codecov Report

Merging #8383 (78dd637) into master (90478f3) will decrease coverage by 0.14%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8383      +/-   ##
==========================================
- Coverage   89.81%   89.67%   -0.15%     
==========================================
  Files         149      149              
  Lines      167402   164628    -2774     
==========================================
- Hits       150358   147631    -2727     
+ Misses      17044    16997      -47     
Flag Coverage Δ
huge-clang-none 91.83% <ø> (+2.82%) ⬆️
huge-gcc-none 89.26% <0.00%> (+<0.01%) ⬆️
huge-gcc-testgui 87.76% <0.00%> (-0.01%) ⬇️
huge-gcc-unittests 2.50% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/if_tcl.c 90.29% <0.00%> (-0.09%) ⬇️
src/optionstr.c 94.99% <0.00%> (-0.06%) ⬇️
src/os_unix.c 70.98% <0.00%> (-1.49%) ⬇️
src/term.c 82.42% <0.00%> (-0.92%) ⬇️
src/textobject.c 91.69% <0.00%> (-0.71%) ⬇️
src/screen.c 85.85% <0.00%> (-0.64%) ⬇️
src/if_python.c 82.65% <0.00%> (-0.62%) ⬇️
src/bufwrite.c 84.17% <0.00%> (-0.60%) ⬇️
src/drawline.c 84.74% <0.00%> (-0.55%) ⬇️
src/move.c 93.77% <0.00%> (-0.54%) ⬇️
... and 107 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90478f3...78dd637. Read the comment docs.

@brammool
Copy link
Contributor

The change to if_tcl.c looks OK. The other, however, is two error messages, and the second one already is siemsg(). Changing the first one to siemsg() would result in aborting before the second message can be given.

@brammool brammool closed this in affd0bc Jun 15, 2021
janlazo added a commit to janlazo/neovim that referenced this pull request Jul 31, 2021
Problem:    Location list only has the start position.
Solution:   Make it possible to add an end position. (Shane-XB-Qian,
            closes vim/vim#8393)
vim/vim@6864efa

N/A patches for version.c:

vim-patch:8.2.3002: Vim doesn't abort on a fatal Tcl error

Problem:    Vim doesn't abort on a fatal Tcl error.
Solution:   Change emsg() to iemsg(). (Dominique Pellé, closes vim/vim#8383)
vim/vim@affd0bc

vim-patch:8.2.3030: Coverity reports a memory leak

Problem:    Coverity reports a memory leak.
Solution:   Fix the leak and a few typos. (Dominique Pellé, closes vim/vim#8418)
vim/vim@cb54bc6

Patch v8.2.3022 is mostly N/A but cannot be included here
because of new feature check for "has()".

vim-patch:8.2.3032: build problems with MSVC, other crypt issues with libsodium

Problem:    Build problems with MSVC, other crypt issues with libsodium.
Solution:   Adjust MSVC makefile. Disable swap file only when 'key' is set.
            Adjust error message used when key is wrong.  Fix Coverity issues.
            (Christian Brabandt, closes vim/vim#8420, closes vim/vim#8411)
vim/vim@226b28b

vim-patch:8.2.3044: Amiga MorphOS and AROS: process ID is not valid

Problem:    Amiga MorphOS and AROS: process ID is not valid.
Solution:   Use FindTask to return something which is unique to all processes.
            (Ola Söder, closes vim/vim#8444)
vim/vim@3a62b14

vim-patch:8.2.3046: Amiga MorphOS: Term mode is set using DOS packets

Problem:    Amiga MorphOS: Term mode is set using DOS packets.
Solution:   Use the same way of setting term mdoe on all next gen Amiga-like
            systems.  (Ola Söder, closes vim/vim#8445)
vim/vim@b420ac9
lewis6991 pushed a commit to lewis6991/neovim that referenced this pull request Dec 12, 2021
Problem:    Location list only has the start position.
Solution:   Make it possible to add an end position. (Shane-XB-Qian,
            closes vim/vim#8393)
vim/vim@6864efa

N/A patches for version.c:

vim-patch:8.2.3002: Vim doesn't abort on a fatal Tcl error

Problem:    Vim doesn't abort on a fatal Tcl error.
Solution:   Change emsg() to iemsg(). (Dominique Pellé, closes vim/vim#8383)
vim/vim@affd0bc

vim-patch:8.2.3030: Coverity reports a memory leak

Problem:    Coverity reports a memory leak.
Solution:   Fix the leak and a few typos. (Dominique Pellé, closes vim/vim#8418)
vim/vim@cb54bc6

Patch v8.2.3022 is mostly N/A but cannot be included here
because of new feature check for "has()".

vim-patch:8.2.3032: build problems with MSVC, other crypt issues with libsodium

Problem:    Build problems with MSVC, other crypt issues with libsodium.
Solution:   Adjust MSVC makefile. Disable swap file only when 'key' is set.
            Adjust error message used when key is wrong.  Fix Coverity issues.
            (Christian Brabandt, closes vim/vim#8420, closes vim/vim#8411)
vim/vim@226b28b

vim-patch:8.2.3044: Amiga MorphOS and AROS: process ID is not valid

Problem:    Amiga MorphOS and AROS: process ID is not valid.
Solution:   Use FindTask to return something which is unique to all processes.
            (Ola Söder, closes vim/vim#8444)
vim/vim@3a62b14

vim-patch:8.2.3046: Amiga MorphOS: Term mode is set using DOS packets

Problem:    Amiga MorphOS: Term mode is set using DOS packets.
Solution:   Use the same way of setting term mdoe on all next gen Amiga-like
            systems.  (Ola Söder, closes vim/vim#8445)
vim/vim@b420ac9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants