*refactored error raising of string manipulation.
This commit is contained in:
parent
270f679340
commit
23c4ecb4bb
5
HISTORY
5
HISTORY
@ -1,5 +1,8 @@
|
||||
May. 24 2016
|
||||
Refactored error raising of string manipulation
|
||||
|
||||
May. 20 2016
|
||||
Added an assertion when buffer overflow in STR
|
||||
Added an assertion when buffer overflow in the STR statement
|
||||
|
||||
May. 19 2016
|
||||
Added UTF8 BOM detection even with MB_ENABLE_UNICODE disabled
|
||||
|
@ -14997,9 +14997,7 @@ static int _std_left(mb_interpreter_t* s, void** l) {
|
||||
mb_check(mb_attempt_close_bracket(s, l));
|
||||
|
||||
if(count <= 0) {
|
||||
result = MB_FUNC_ERR;
|
||||
|
||||
goto _exit;
|
||||
_handle_error_on_obj(s, SE_RN_INDEX_OUT_OF_BOUND, s->source_file, DON2(l), MB_FUNC_ERR, _exit, result);
|
||||
}
|
||||
|
||||
#ifdef MB_ENABLE_UNICODE
|
||||
@ -15043,9 +15041,7 @@ static int _std_mid(mb_interpreter_t* s, void** l) {
|
||||
mb_check(mb_attempt_close_bracket(s, l));
|
||||
|
||||
if(count <= 0 || start < 0 || start >= (int_t)strlen(arg)) {
|
||||
result = MB_FUNC_ERR;
|
||||
|
||||
goto _exit;
|
||||
_handle_error_on_obj(s, SE_RN_INDEX_OUT_OF_BOUND, s->source_file, DON2(l), MB_FUNC_ERR, _exit, result);
|
||||
}
|
||||
|
||||
#ifdef MB_ENABLE_UNICODE
|
||||
@ -15087,9 +15083,7 @@ static int _std_right(mb_interpreter_t* s, void** l) {
|
||||
mb_check(mb_attempt_close_bracket(s, l));
|
||||
|
||||
if(count <= 0) {
|
||||
result = MB_FUNC_ERR;
|
||||
|
||||
goto _exit;
|
||||
_handle_error_on_obj(s, SE_RN_INDEX_OUT_OF_BOUND, s->source_file, DON2(l), MB_FUNC_ERR, _exit, result);
|
||||
}
|
||||
|
||||
#ifdef MB_ENABLE_UNICODE
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user