Bug 2255510

Summary: telnet: crashes when setting the tracefile option
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: telnetAssignee: Michal Ruprich <mruprich>
Status: CLOSED RAWHIDE QA Contact: Florian Weimer <fweimer>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: luhliari, mruprich, msekleta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: telnet-0.17-91.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-21 12:19:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2141798    
Attachments:
Description Flags
telnet-c99.patch none

Description Florian Weimer 2023-12-21 12:02:51 UTC
The tracefile option does not work:

$ telnet
telnet> set tracefile /dev/null
Segmentation fault (core dumped)

This is correctly diagnosed by GCC as a pointer-to-int truncation (-Wint-conversion warning).


Reproducible: Always

Comment 1 Florian Weimer 2023-12-21 12:03:58 UTC
Created attachment 2005277 [details]
telnet-c99.patch

Patch with fix, addressing another C type error.