summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-01-23 16:53:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-01-23 16:53:31 +0900
commitf0f095bc135c4d2e6f6d54d6b5683db77708369b (patch)
tree81e516765575e393b476c0ae76c6a60ecd698e46 /include
parent3ce82603a56f2b9480e2bd889dd98f813b868757 (diff)
downloadmruby-f0f095bc135c4d2e6f6d54d6b5683db77708369b.tar.gz
mruby-f0f095bc135c4d2e6f6d54d6b5683db77708369b.zip
Fix a double free problem in codegen.c; fix #3378
This issue was first reported by https://hackerone.com/geeknik The fix was proposed by @titanous
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 8922f4b76..35ae2bbaa 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -39,6 +39,7 @@ typedef struct mrb_irep {
struct mrb_locals *lv;
/* debug info */
+ mrb_bool own_filename;
const char *filename;
uint16_t *lines;
struct mrb_irep_debug_info* debug_info;