Bug 44049 - comms/gsmlib crashes when formatting timestamp of delivery messages
Summary: comms/gsmlib crashes when formatting timestamp of delivery messages
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-14 13:50 UTC by Yi-Hsuan Hsin
Modified: 2002-10-28 18:42 UTC (History)
0 users

See Also:


Attachments
file.diff (347 bytes, patch)
2002-10-14 13:50 UTC, Yi-Hsuan Hsin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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