~registry/kmod/master

  • Committer: Lucas De Marchi
  • Author(s): Dmitry Antipov
  • Date: 2023-05-31 05:36:43 UTC
  • Revision ID: git-v1:9c262fdb1c798fd87d91e8c669acbec4d632024b
shared: avoid passing {NULL, 0} array to bsearch()

Fix the following warning reported by UBSan (as of gcc-13.1.1):

shared/hash.c:244:35: runtime error: null pointer passed as
argument 2, which is declared to never be null

Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
[ reshuffle the code to use return-early style ]
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Filename Latest Rev Last Changed Committer Comment Size
..
libkmod 2 12 years ago Lucas De Marchi Rename libabc to libkmod Diff
m4 1 12 years ago Lucas De Marchi Import skeleton from libabc Diff
man 439 12 years ago Lucas De Marchi rename doc dir to man Diff
shared 919 9 years ago Lucas De Marchi Move macro.h to shared directory It's not really Diff
shell-completion 815 10 years ago Lucas De Marchi shell-completion: Add initial completion for kmod Diff
testsuite 495 12 years ago Lucas De Marchi testsuite: add skeleton Diff
tools 163 12 years ago Lucas De Marchi Merge branch 'use-mmap' Conflicts: libkmod/libkm Diff
.gitignore 1245 2 years ago Lucas De Marchi gitignore: ignore gtk-doc.make Reviewed-by: Luis 303 bytes Diff Download File
.travis.yml 1205 3 years ago Lucas De Marchi ci: update travis distro Don't bother with gcc 4. 802 bytes Diff Download File
File autogen.sh 1279 1 year ago Lucas De Marchi autogen.sh: remove --with-rootprefix, it is gone s 1.7 KB Diff Download File
CODING-STYLE 971 9 years ago Lucas De Marchi CODING-STYLE: add include order 2.3 KB Diff Download File
configure.ac 1296 1 year ago Lucas De Marchi configure.ac: fix link with -llzma Add liblzma_LI 11 KB Diff Download File
COPYING 928 9 years ago Lucas De Marchi Clarify what licences apply where This doesn't ch 25.8 KB Diff Download File
Makefile.am 1295 1 year ago Lucas De Marchi configure: manage libkmod.pc.in and version.py.in 16.2 KB Diff Download File
NEWS 1273 1 year ago Lucas De Marchi kmod 30 27.9 KB Diff Download File
README.md 1271 1 year ago Lucas De Marchi README: Update optional dependencies Signed-off-b 3.7 KB Diff Download File
TODO 1142 6 years ago Lucas De Marchi libkmod-module: check for NULL before accessing po 2.1 KB Diff Download File