diff options
author | huyubiao <huyubiao@huawei.com> | 2023-09-26 08:46:55 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-09-26 18:38:16 +0200 |
commit | b53a80966e8a2d68b66bf1b47c2ee633a71fad49 (patch) | |
tree | 0510e13bce059508e09389663d0f181ebfb00985 /src/nss-systemd | |
parent | add support for hp pavilion gaming 15 lid switch (#29304) (diff) | |
download | systemd-b53a80966e8a2d68b66bf1b47c2ee633a71fad49.tar.xz systemd-b53a80966e8a2d68b66bf1b47c2ee633a71fad49.zip |
systemd-hwdb: fix unsigned and signed comparison problem
...
uint8_t c;
struct trie_node *child;
for (p = 0; (c = trie->strings->buf[node->prefix_off + p]); p++) {
_cleanup_free_ struct trie_node *new_child = NULL;
_cleanup_free_ char *s = NULL;
ssize_t off;
if (c == search[i + p])
continue;
...
When '®' is present in search, c is 194, search[i + p] is -62, c is not equal to search[i + p], but c should be equal to search[i + p].
Diffstat (limited to 'src/nss-systemd')
0 files changed, 0 insertions, 0 deletions