Ralph Desir
e1beb502ab
Cleaned up the re.h markdown.
2015-09-03 14:19:02 -04:00
Ralph Desir(Mav7)
93aaa06736
Added range markdown.
2015-09-03 14:16:57 -04:00
Ralph Desir
79aa0866ce
Added reg.h markdown.
2015-09-02 18:57:00 -04:00
Ralph Desir(Mav7)
1bd5c48596
Added regular expression header markdown.
2015-09-02 18:52:16 -04:00
Ralph Desir
6beae5ec71
Created version.h markdown.
2015-09-02 18:45:03 -04:00
Ralph Desir(Mav7)
da0dc6937d
doc/api/mruby/version.h.md
2015-09-02 18:19:53 -04:00
Ralph Desir
8ad8c547dd
Update string.h.md
2015-09-01 13:50:27 -04:00
Ralph Desir
d78d001734
Update string.h.md
2015-08-31 23:16:45 -04:00
Ralph Desir
00dd2dfa39
Update string.h.md
2015-08-31 14:11:17 -04:00
Ralph Desir
a2f6152be8
Update string.h.md
2015-08-30 23:55:55 -04:00
Ralph Desir(Mav7)
0f2b3643ba
Added string markdown.
2015-08-30 20:20:45 -04:00
Ralph Desir(Mav7)
6619dc4d75
Deleted range and string markdowns for now.
2015-07-17 14:43:55 -04:00
Ralph Desir
f282d94793
Update hash.h.md
2015-07-17 14:25:15 -04:00
Ralph Desir
78a40fce88
Update hash.h.md
2015-07-17 14:21:13 -04:00
Ralph Desir
82380780db
Update hash.h.md
2015-07-08 05:35:37 -04:00
Mav7
2523ed473a
Added new markdowns.
2015-07-08 04:50:01 -04:00
Yukihiro "Matz" Matsumoto
40252169fc
method_missing definition may be undefined; fix #2878
2015-07-07 10:32:54 +09:00
Yukihiro "Matz" Matsumoto
5cfc0d0dc0
Merge pull request #2877 from cremno/fix-dangling-ptr
...
Coverity: fix dangling pointer
2015-07-07 07:40:38 +09:00
Yukihiro "Matz" Matsumoto
5daabc9407
Merge pull request #2876 from joans321/master
...
fix androideabi cross-compile error : undefined reference to 'frexpl'
2015-07-07 00:36:51 +09:00
Yukihiro "Matz" Matsumoto
f1c6d6c866
Merge pull request #2875 from davydovanton/doc-comment-typo
...
Fix typo in comment in String#mrb_cstr_to_inum
2015-07-07 00:34:03 +09:00
xuejianqing
0b50b4a500
fix androideabi cross-compile error : undefined reference to 'frexpl'
2015-07-06 12:51:57 +08:00
Anton Davydov
03ae38df4e
Fix typo in comment in String#mrb_cstr_to_inum [skip ci]
2015-07-05 13:53:14 +03:00
Yukihiro "Matz" Matsumoto
e690e1e877
Merge pull request #2871 from archSeer/patch-2
...
Fix incorrect memory allocation of mrdb_state_new.
2015-07-03 15:05:29 +09:00
Yukihiro "Matz" Matsumoto
1dbb2b74d3
Merge pull request #2874 from cremno/fix-parser-oob-write
...
Coverity: fix oob write by actually truncating buffer
2015-07-03 15:03:45 +09:00
Yukihiro "Matz" Matsumoto
b071dcd4fb
Merge pull request #2873 from cremno/fix-coverity-missing-break-in-switch
...
Coverity: fix missing break in switch defects
2015-07-03 15:03:01 +09:00
cremno
7206a8c4f9
fix dangling pointer
...
CID 75872 (#3-2 of 3): Pointer to local outside scope (RETURN_LOCAL)
38. use_invalid: Using p, which points to an out-of-scope variable buf.
2015-07-03 02:48:22 +02:00
cremno
24583a7a18
fix oob write by actually truncating buffer
...
Found by Coverity scan of polyfox-moon:
CID 121927 (#1 of 1): Out-of-bounds write (OVERRUN)
2015-07-03 01:30:54 +02:00
cremno
43df1d7e39
remove unnecessary default case
2015-07-03 01:14:06 +02:00
cremno
6a74b8bf0d
add missing fall through comments
2015-07-02 22:11:21 +02:00
Blaž Hrastnik
a4f63caa79
Fix incorrect memory allocation of mrdb_state_new.
...
As detected in a Coverity scan. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844472&defectInstanceId=2516000&mergedDefectId=75866
2015-07-02 20:47:22 +02:00
Yukihiro "Matz" Matsumoto
ff49cf95fc
Merge pull request #2869 from cremno/refactor-print.c
...
src/print.c: rewrite printstr() to get rid of code duplication
2015-07-01 08:47:41 +09:00
Yukihiro "Matz" Matsumoto
18c82d5359
Merge pull request #2868 from sgnr/avoid-narrowing-cast-in-flo-round
...
Avoid a narrowing cast in flo_round under MRB_INT64.
2015-07-01 08:43:49 +09:00
Simon Génier
d6865a9cc7
Avoid a narrowing cast in flo_round under MRB_INT64.
2015-06-29 20:19:19 -04:00
Yukihiro "Matz" Matsumoto
1c2fc94c20
Merge pull request #2867 from kou/proc-fix-gc-crash
...
Fix a crash bug when GC is ran while creating a proc with env
2015-06-29 18:33:46 +09:00
Kouhei Sutou
52db92de53
Fix a crash bug when GC is ran while creating a proc with env
...
mrb_proc_new_cfunc_with_env() allocates RProc with RProc::env as NULL
then allocates REnv and sets it to RProc::env of the allocated RProc. If
incremental GC is ran before "allocates REnv and sets it to RProc::env
of the allocated RProc", the allocated RProc's GC status is
"marked" (Black) and the allocated REnv's GC status is
"unmarked" (White). The next incremental GC sweeps the allocated REnv
without re-marking the allocated RProc. Because the RProc is Black and
the REnv is White.
We need to implement write barrier for the case.
We can force to cause the above situation by the following patch:
diff --git a/src/proc.c b/src/proc.c
index f98998f..4f4e25c 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -92,6 +92,7 @@ mrb_proc_new_cfunc_with_env(mrb_state *mrb, mrb_func_t func, mrb_int argc, const
struct REnv *e;
int i;
+ mrb_incremental_gc(mrb);
p->env = e = env_new(mrb, argc);
MRB_ENV_UNSHARE_STACK(e);
e->stack = (mrb_value*)mrb_malloc(mrb, sizeof(mrb_value) * argc);
With this patch, "rake test" causes segmentation fault.
2015-06-29 14:39:30 +09:00
Yukihiro "Matz" Matsumoto
b0ec992d41
Merge pull request #2866 from jurriaan/fix-crash
...
Fix segfault found using afl-fuzz
2015-06-29 10:27:09 +09:00
Yukihiro "Matz" Matsumoto
96d6e45acd
Merge pull request #2863 from suzukaze/fix-typo
...
Fix typo; Replace extensional with extended
2015-06-29 10:22:28 +09:00
Yukihiro "Matz" Matsumoto
a41a649e83
Merge pull request #2862 from scalone/recursive_clone
...
Add —-recursive option to automatically update submodules from git mgems
2015-06-29 10:21:07 +09:00
Yukihiro "Matz" Matsumoto
d671f57305
Merge pull request #2861 from scalone/quotes_use
...
Fix quotes use during load special path gem of gem.
2015-06-29 10:17:30 +09:00
Yukihiro "Matz" Matsumoto
0e0773c683
Merge pull request #2860 from franckverrot/move-doc
...
Respect the directory structure of `include`
2015-06-29 10:12:03 +09:00
Jurriaan Pruis
a41f5eb23f
Fix segfault found using afl-fuzz
2015-06-28 13:46:23 +02:00
Jun Hiroe
4e4929bc72
Rename extended xxxx class or module to xxxx class or module extension
2015-06-28 11:18:52 +09:00
Jun Hiroe
c69d1201e1
Fix typo; Replace extensional with extended
2015-06-28 00:05:58 +09:00
Thiago Scalone
fa4b88b893
Fix quotes use during load special path gem of gem.
2015-06-26 14:35:34 -03:00
Thiago Scalone
449ec101f6
Add —-recursive option to automatically update submodules from git mgems.
2015-06-26 14:22:09 -03:00
Franck Verrot
427cc64de0
Respect the directory structure of include
...
As mentioned in the README, two files have been put under the `mruby`
directory.
2015-06-26 14:37:57 +02:00
Yukihiro "Matz" Matsumoto
f39a31a623
Merge pull request #2859 from mattn/fix-root
...
add_dependency doesn't work
2015-06-25 09:57:23 +09:00
Yukihiro "Matz" Matsumoto
db7e02cd41
Merge pull request #2858 from franckverrot/remove-unnecessary-backticks
...
Remove unnecessary backticks
2015-06-25 09:55:25 +09:00
mattn
a15e99d2b6
add_dependency doesn't work
2015-06-25 00:19:04 +09:00
Franck Verrot
2588507285
Remove unnecessary backticks.
...
Dr Markus Kuhn published in 1999 an article [1] explaining in details
why we shouldn't use the ASCII grave accent (0x60) as a left quotation.
Backticks have been used most notably to produce nice-looking LaTeX
documents but it doesn't seem to be an issue on modern platforms and
for the oldest ones, there are workarounds as mentioned by Dr Kuhn.
[1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-06-24 13:07:07 +02:00