unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: How much do we care about undefined behavior triggered by invalid bytecode?
Date: Tue, 22 May 2018 16:04:42 +0200	[thread overview]
Message-ID: <CAArVCkS1rOdLM0UBEhdK+O39pxKa1zwP9D3cZwoVwYt5Qw11qg@mail.gmail.com> (raw)
In-Reply-To: <CAM-tV-885iDAPxgXbKgrn77Md6RvCJEq2poYW1k3QiT1=T_wVw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

Noam Postavsky <npostavs@gmail.com> schrieb am Di., 22. Mai 2018 um
15:42 Uhr:

> On 22 May 2018 at 09:31, Philipp Stephani <p.stephani2@gmail.com> wrote:
> > It's pretty easy to find examples of (printed representations of) invalid
> > bytecode that trigger C-level assertions or undefined behavior
> ("crashes").
> > Should these be reported as bugs, or do we assume that any bytecode
> object
> > is valid?
>
> The latter, according to the manual (elisp) Byte-Code Objects:
>
>    You should not try to come up with the elements for a byte-code
> function yourself, because if they are inconsistent, Emacs may crash
> when you call the function.  Always leave it to the byte compiler to
> create these objects; it makes the elements consistent (we hope).
>

That refers only to calling bytecode objects, not to e.g. reading their
printed representation. Would it also apply to reading or other forms of
handling bytecode objects? If so, the documentation should say so.

[-- Attachment #2: Type: text/html, Size: 1370 bytes --]

  parent reply	other threads:[~2018-05-22 14:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 13:31 How much do we care about undefined behavior triggered by invalid bytecode? Philipp Stephani
2018-05-22 13:42 ` Noam Postavsky
2018-05-22 14:01   ` Andreas Schwab
2018-05-23  3:28     ` Richard Stallman
2018-05-22 14:04   ` Philipp Stephani [this message]
2018-05-22 14:40     ` Noam Postavsky
2018-05-22 14:51       ` Paul Eggert
2018-05-22 15:37         ` Philipp Stephani
2018-05-25  0:30         ` Tom Tromey
2018-05-22 17:30       ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkS1rOdLM0UBEhdK+O39pxKa1zwP9D3cZwoVwYt5Qw11qg@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).