Bug 2255510 - telnet: crashes when setting the tracefile option
Summary: telnet: crashes when setting the tracefile option
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: telnet
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact: Florian Weimer
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2023-12-21 12:02 UTC by Florian Weimer
Modified: 2023-12-21 12:19 UTC (History)
3 users (show)

Fixed In Version: telnet-0.17-91.fc40
Clone Of:
Environment:
Last Closed: 2023-12-21 12:19:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
telnet-c99.patch (1.65 KB, patch)
2023-12-21 12:03 UTC, Florian Weimer
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.