diff options
| author | cremno <[email protected]> | 2014-07-11 12:59:15 +0200 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-07-11 13:03:13 +0200 |
| commit | 9d597f4d9f421d7d1b8b3b6788e2c9add1f3b4e6 (patch) | |
| tree | c667e767893c52ee84a1e6fe75cf100aacf6c174 /src/range.c | |
| parent | ec45dbe16a418f58414f039f1a3b734cd14f63b8 (diff) | |
| download | mruby-9d597f4d9f421d7d1b8b3b6788e2c9add1f3b4e6.tar.gz mruby-9d597f4d9f421d7d1b8b3b6788e2c9add1f3b4e6.zip | |
allocate `history_path` dynamically
`PATH_MAX` doesn't have to be defined and if it is, then its value is
usually incorrect (possible buffer overflow).
Use `malloc` and `snprintf` instead to prevent this.
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
Diffstat (limited to 'src/range.c')
0 files changed, 0 insertions, 0 deletions
