-
Notifications
You must be signed in to change notification settings - Fork 838
Comparing changes
Open a pull request
base repository: mruby/mruby
base: b83e4df
head repository: dearblue/mruby
compare: 6797ebf
- 18 commits
- 9 files changed
- 1 contributor
Commits on Jan 20, 2019
-
Fix NULL pointer dereference
mrb->nomem_errwhen not initializedAdd internal functions (not `static`): * `mrb_raise_nomemory()` * `mrb_core_init_abort()`
Configuration menu - View commit details
-
Copy full SHA for b4b4773 - Browse repository at this point
Copy the full SHA b4b4773View commit details -
Fix stack overflow when out of memory
As a result of this change, no backtrace information is set for NoMemoryError (`mrb->nomem_err`). Detailes: When generating a backtrace, called `mrb_intern_lit()`, `mrb_str_new_cstr()` and `mrb_obj_iv_set()` function with `exc_debug_info()` function in `src/error.c`. If a `NoMemoryError` exception occurs at this time, the `exc_debug_info()` function will be called again, and in the same way `NoMemoryError` exception raised will result in an infinite loop to occurs stack overflow (and SIGSEGV).
Configuration menu - View commit details
-
Copy full SHA for c50f444 - Browse repository at this point
Copy the full SHA c50f444View commit details -
Fix memory leak for string object when out of memory
The `mrb_str_pool()` function has a path to call `malloc()` twice. If occurs `NoMemoryError` exception in second `malloc()`, first `malloc()` pointer is not freed.
Configuration menu - View commit details
-
Copy full SHA for 121a9d5 - Browse repository at this point
Copy the full SHA 121a9d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32875cf - Browse repository at this point
Copy the full SHA 32875cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fda84bf - Browse repository at this point
Copy the full SHA fda84bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfea659 - Browse repository at this point
Copy the full SHA bfea659View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4f65b4 - Browse repository at this point
Copy the full SHA a4f65b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d063d9 - Browse repository at this point
Copy the full SHA 7d063d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a421da5 - Browse repository at this point
Copy the full SHA a421da5View commit details -
Fix memory leak for
khash_tinkh_init_size()when out of memory ……by `kh_alloc()`
Configuration menu - View commit details
-
Copy full SHA for 771ae4e - Browse repository at this point
Copy the full SHA 771ae4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76d81d8 - Browse repository at this point
Copy the full SHA 76d81d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12549ec - Browse repository at this point
Copy the full SHA 12549ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73bedb7 - Browse repository at this point
Copy the full SHA 73bedb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4e9262 - Browse repository at this point
Copy the full SHA d4e9262View commit details -
Configuration menu - View commit details
-
Copy full SHA for efc0754 - Browse repository at this point
Copy the full SHA efc0754View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0c3d66 - Browse repository at this point
Copy the full SHA a0c3d66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26ab8bb - Browse repository at this point
Copy the full SHA 26ab8bbView commit details -
Fix invalid pointer free inside other heap's block
1. `e = mrb_obj_alloc(...)` 2. `e->stack = mrb->c->stack` (`mrb->c->stack` is anywhere in the range `stbase...stend`) 3. And raised exception by `mrb_malloc()`! 4. `mrb_free(e->stack)` by GC part (wrong free)
Configuration menu - View commit details
-
Copy full SHA for 6797ebf - Browse repository at this point
Copy the full SHA 6797ebfView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff b83e4df...6797ebf