bug-gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gforth] [bug #46988] Fix use of uninitalized memory


From: Jasper Lievisse Adriaanse
Subject: [Bug-gforth] [bug #46988] Fix use of uninitalized memory
Date: Wed, 27 Jan 2016 08:10:29 +0000
User-agent: Mozilla/5.0 (X11; OpenBSD amd64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?46988>

                 Summary: Fix use of uninitalized memory 
                 Project: Gforth
            Submitted by: jasperla
            Submitted on: Wed 27 Jan 2016 08:10:28 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

OpenBSD's malloc(3) (see [1]) implementation allows for adding junk to the
allocated area (see options 'j' and 'J'). Through this it was discovered that
gforth_engine() was using uninitialized memory and would crash. The attached
patch resolves the issue.

1: http://www.openbsd.org/cgi-bin/man.cgi?query=malloc.conf



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 27 Jan 2016 08:10:28 AM GMT  Name: patch-engine_engine_c  Size: 853B
  By: jasperla

<http://savannah.gnu.org/bugs/download.php?file_id=36171>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46988>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]