diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-02-02 17:18:11 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2026-02-24 03:17:35 +0000 |
| commit | 1ce195ddf8a6f92da597b400905a233deffa2cf4 (patch) | |
| tree | f4bab6a06161543b4eb2359947fc062e49a51740 /sys/dev/ice | |
| parent | 51bb8e49cf7e0d6e42cbae980c3b57d8a71af07b (diff) | |
heimdal: Pass the correct pointer to realloc when growing a string bufferstable/14
The realloc in my_fgetln was trying to grow the pointer to the string
buffer, not the string buffer itself.
In function 'my_fgetln',
inlined from 'mit_prop_dump' at crypto/heimdal/kdc/mit_dump.c:156:19:
crypto/heimdal/kdc/mit_dump.c:119:13: error: 'realloc' called on unallocated object 'line' [-Werror=free-nonheap-object]
119 | n = realloc(buf, *sz + (*sz >> 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/heimdal/kdc/mit_dump.c: In function 'mit_prop_dump':
crypto/heimdal/kdc/mit_dump.c:139:11: note: declared here
139 | char *line = NULL;
| ^~~~
Reviewed by: rmacklem, cy
Fixes: a93e1b731ae4 ("heimdal-kadmin: Add support for the -f dump option")
Differential Revision: https://reviews.freebsd.org/D54933
(cherry picked from commit 03d8ac948b1ad9c419b294c3129b7da58d818363)
Diffstat (limited to 'sys/dev/ice')
0 files changed, 0 insertions, 0 deletions
