commit | a216255a4faa91a15e7005ac319f2f62294f3f9e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 08 17:46:20 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 08 17:46:20 2017 +0100 |
tree | b26ce4a074f220711b9da9d573cc37e3d60db6ef | |
parent | 31f19ce0a052f7c76d44a9a190e468c79cf5d56d [diff] [blame] |
patch 8.0.0155: ubsan complains about NULL pointer Problem: When sorting zero elements a NULL pointer is passed to qsort(), which ubsan warns for. Solution: Don't call qsort() if there are no elements. (Dominique Pelle)
diff --git a/src/version.c b/src/version.c index 368e6be..d88c03b 100644 --- a/src/version.c +++ b/src/version.c
@@ -765,6 +765,8 @@ static int included_patches[] = { /* Add new patch number below this line */ /**/ + 155, +/**/ 154, /**/ 153,