Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921132 - app-portage/portage-utils: qlist -IUv truncates output
Summary: app-portage/portage-utils: qlist -IUv truncates output
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-31 16:07 UTC by Fabian Groffen
Modified: 2024-01-01 10:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2023-12-31 16:07:28 UTC
% qlist -IUv nginx
www-servers/nginx-1.25.3-r1 -aio -debug http http-cache http2 -http3 -ktls -libatomic lua_single_target_luajit nginx_modules_http_access -nginx_modules_http_addition nginx_modules_http_auth_basic -nginx_modules_http_auth_ldap nginx_modules_http_auth_pam -nginx_modules_http_auth_request nginx_modules_http_autoindex -nginx_modules_http_brotli nginx_modules_http_browser -nginx_modules_http_cache_purge nginx_modules_http_charset nginx_modules_http_dav nginx_modules_http_dav_ext -nginx_modules_http_degradation nginx_modules_http_echo nginx_modules_http_empty_gif -nginx_modules_http_fancyindex nginx_modules_http_fastcgi

but
% qlist -IUv nginx | grep map
www-servers/nginx-1.25.3-r1 -aio -debug http http-cache http2 -http3 -ktls -libatomic lua_single_target_luajit nginx_modules_http_access -nginx_modules_http_addition nginx_modules_http_auth_basic -nginx_modules_http_auth_ldap nginx_modules_http_auth_pam -nginx_modules_http_auth_request nginx_modules_http_autoindex -nginx_modules_http_brotli nginx_modules_http_browser -nginx_modules_http_cache_purge nginx_modules_http_charset nginx_modules_http_dav nginx_modules_http_dav_ext -nginx_modules_http_degradation nginx_modules_http_echo nginx_modules_http_empty_gif -nginx_modules_http_fancyindex nginx_modules_http_fastcgi -nginx_modules_http_flv nginx_modules_http_geo -nginx_modules_http_geoip -nginx_modules_http_geoip2 nginx_modules_http_grpc -nginx_modules_http_gunzip nginx_modules_http_gzip -nginx_modules_http_gzip_static -nginx_modules_http_headers_more -nginx_modules_http_image_filter -nginx_modules_http_javascript nginx_modules_http_limit_conn nginx_modules_http_limit_req -nginx_modules_http_lua nginx_modules_http_map -nginx_modules_htt

the output is truncated.

_umapstr_buf is limited to BUFSIZ.  In this case, umapstr function is called only once, to perform a printf.  umapstr should probably just print directly to the stream instead, so no allocation is necessary, and no limits apply.
Comment 1 Larry the Git Cow gentoo-dev 2024-01-01 10:37:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=13577b18e6ae5f6f1a5abf067d351f2ffc6148cc

commit 13577b18e6ae5f6f1a5abf067d351f2ffc6148cc
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-01-01 10:33:11 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-01-01 10:36:54 +0000

    qlist: avoid truncation of USE-flags in package view
    
    Closes: https://bugs.gentoo.org/921132
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 qlist.c | 33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)