Bug 83424 - [libstand] [patch] improper handling of malloc failures within libstand
Summary: [libstand] [patch] improper handling of malloc failures within libstand
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 5.4-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 01:20 UTC by Dan Lukes
Modified: 2017-08-27 01:21 UTC (History)
1 user (show)

See Also:


Attachments
patch (10.68 KB, patch)
2005-07-14 01:20 UTC, Dan Lukes
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Lukes 2005-07-14 01:20:14 UTC
	The major problem is that there are too many places within libstand where 
the malloc's return value isn't properly checked.

	Minor problem is that bswap64() code break strict-aliasing rules

	WARNS level can be raised to 2
Comment 1 Dan Lukes 2005-07-14 15:43:27 UTC
	Please note the 'WARNS+=2' change within Makefile should be 'WARNS?=2' 
instead