[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36038] Memory error in 'octave --eval 0'
From: |
Max Brister |
Subject: |
[Octave-bug-tracker] [bug #36038] Memory error in 'octave --eval 0' |
Date: |
Thu, 29 Mar 2012 23:06:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19 |
Follow-up Comment #1, bug #36038 (project octave):
I have attached a patch which fixes this issue. When there is no current
buffer, yyrestart creates a new buffer for the old yyin first. This causes
problems if yyin has already been deleted, as is the case with --eval.
I fixed this by just setting yyin to NULL in delete_buffer if current_buffer
is also NULL.
Max Brister
(file #25514)
_______________________________________________________
Additional Item Attachment:
File name: invalid_read.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36038>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/