NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/60741: strings in installation binaries cause bloat



>Number:         60741
>Category:       install
>Synopsis:       strings in installation binaries cause bloat
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 18 14:20:00 +0000 2026
>Originator:     Christos Zoulas
>Release:        NetBSD 11.99.7
>Organization:
	WeightNotWatchers Inc,
>Environment:
System: NetBSD quasar.astron.com 11.99.7 NetBSD 11.99.7 (QUASAR) #77: Thu Aug 20 11:52:25 EDT 2026 christos%quasar.astron.com@localhost:/usr/src/sys/arch/amd64/compile/QUASAR amd64
Architecture: x86_64
Machine: amd64
>Description:
	While we strive to save a few bytes here and there to fit in
	small install media, we waste a lot of space by including
	assertions and filename strings in install media
>How-To-Repeat:
	Run strings on "instbin"
....
/usr/src/lib/libc/gen/getcap.c
cap != NULL
db_array != NULL
%s.db
bp != NULL
__type_fit(int, len)
num != NULL
/usr/src/lib/libc/gen/execvp.c
execvp: 
: path too long
/usr/src/lib/libc/stdio/vsscanf.c
fmt != NULL
/usr/src/lib/libc/stdio/vfscanf.c
fmt0 != NULL
__type_fit(int, fp->_r - width)
NFINITY
/usr/src/lib/libc/stdio/ungetc.c
cc && cc->cc_ops && cc->cc_ops->co_mblen && nresult
/usr/src/lib/libc/citrus/citrus_ctype.h
cc && cc->cc_ops && cc->cc_ops->co_mbstowcs && nresult
cc && cc->cc_ops && cc->cc_ops->co_mbtowc && nresult
cc && cc->cc_ops && cc->cc_ops->co_wcstombs && nresult
rl != NULL
/usr/src/lib/libc/locale/multibyte.h
cc && cc->cc_ops && cc->cc_ops->co_mbrtowc
_ps_to_runelocale(ps) != NULL
cc && cc->cc_ops && cc->cc_ops->co_wcsnrtombs && nresult
cc && cc->cc_ops && cc->cc_ops->co_wctomb && nresult
mbdstp != NULL
/usr/src/lib/libc/gen/vis.c
mbextra != NULL
mbsrc != NULL || mblength == 0
clen < 0 || (size_t)clen <= mbslength
clen <= MB_LEN_MAX
olen + clen < maxolen
/usr/src/lib/libc/gen/fts.c
head != NULL
tmp == sp->fts_cur
dirp != NULL
/usr/src/lib/libc/gen/closedir.c
/usr/src/lib/libc/string/wcschr.c
/usr/src/lib/libc/string/strcoll.c
....

>Fix:
	- perhaps compile a version without DIAGASSERT of the relevant
	  libc files?
	- figure out how to strip the pathnames of the source files




Home | Main Index | Thread Index | Old Index