Mercurial > vim
view src/typemap @ 31487:df58407c97f3 v9.0.1076
patch 9.0.1076: ASAN complains about NULL argument
Commit: https://github.com/vim/vim/commit/8efdcee02ed02cf9e51e1757441715c2479757ee
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 19 12:18:09 2022 +0000
patch 9.0.1076: ASAN complains about NULL argument
Problem: ASAN complains about NULL argument.
Solution: Skip memmove() when there is nothing to move.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Dec 2022 13:30:08 +0100 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")