all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problem report #105
@ 2008-12-01 17:06 Dan Nicolaescu
  2008-12-01 20:14 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Nicolaescu @ 2008-12-01 17:06 UTC (permalink / raw)
  To: emacs-devel

CID: 105
Checker: NULL_RETURNS (help)
File: base/src/emacs/src/font.c
Function: register_font_driver
Description: Dereferencing NULL value "list"

Event returned_null: Function "malloc" returned NULL value (checked 29 out of 36 times)
Event var_assigned: Variable "list" assigned to NULL return value from "malloc"
Also see events: [var_assigned][dereference]

3426 	  list = malloc (sizeof (struct font_driver_list));

Event dereference: Dereferencing NULL value "list"
Also see events: [returned_null][var_assigned]

3427 	  list->on = 0;
3428 	  list->driver = driver;
3429 	  list->next = NULL;




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problem report #105
  2008-12-01 17:06 problem report #105 Dan Nicolaescu
@ 2008-12-01 20:14 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2008-12-01 20:14 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

Dan Nicolaescu <dann@ics.uci.edu> writes:

> 3426 	  list = malloc (sizeof (struct font_driver_list));
>
> Event dereference: Dereferencing NULL value "list"
> Also see events: [returned_null][var_assigned]

Fixed.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-01 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 17:06 problem report #105 Dan Nicolaescu
2008-12-01 20:14 ` Andreas Schwab

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.