Bug 44049

Summary: comms/gsmlib crashes when formatting timestamp of delivery messages
Product: Ports & Packages Reporter: Yi-Hsuan Hsin <mhsin>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Yi-Hsuan Hsin 2002-10-14 13:50:00 UTC
The port comms/gsmlib uses strftime(3) to format timestamp when displaying
delivery message. But it put a NULL pointer as buf to strftime(3). This
causes a segmentation fault.

Fix: Define the BROKEN_STRFTIME symbol to avoid use of NULL point as buf to
strftime(3).

----------------------------------------------------------------------------
How-To-Repeat: Use the utility came with gsmlib called "gsmsmsstore", like:
  gsmsmsstore -l -b 19200 -s /dev/cuaa1 -t "SM"
to display delivery messages from a GSM mobile phone. It will crash when
formatting timestamp.
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-10-28 18:41:43 UTC
State Changed
From-To: open->closed

committed, thanks