all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* extract_data_from_object considered dangerous
@ 2019-09-22 13:39 Stefan Monnier
  2019-09-22 16:50 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2019-09-22 13:39 UTC (permalink / raw)
  To: emacs-devel

I was just looking at the calling convention of extract_data_from_object
and it seems intrinsically dangerous:

    It returns a char* into a Lisp_Object without associating it with
    any specific Lisp_Object

In some cases, the Lisp_Object into which the result points is freshly
allocated during the call, so once we return from the function, there is
no Lisp_Object reference to it anywhere any more to keep it from
being GC'd.


        Stefan




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

end of thread, other threads:[~2019-09-23  2:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-22 13:39 extract_data_from_object considered dangerous Stefan Monnier
2019-09-22 16:50 ` Eli Zaretskii
2019-09-22 20:53   ` Stefan Monnier
2019-09-23  2:28     ` Eli Zaretskii

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.