diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-01 15:02:54 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-06 08:47:40 +0000 |
commit | 7ca6ca4e96a93f9c23fc54320f5ff8e4ff044c8f (patch) | |
tree | 05b351fb0ad0af1a44df8ebf43f8bcbb80f559fa /addr2line.c | |
parent | 0ee8bb4c2a35d81dacf27be5fc42706aa891f33f (diff) | |
download | ruby-7ca6ca4e96a93f9c23fc54320f5ff8e4ff044c8f.tar.gz |
gdbm, dbm, sdbm: prevent possible leak in #initialize
Allocate struct dbmdata before opening a file in case of out of memory.
As a bonus, make ext/dbm and ext/sdbm close the currently open file if
any, as ext/gdbm is doing.
Diffstat (limited to 'addr2line.c')
0 files changed, 0 insertions, 0 deletions