| Index: core/src/fxcrt/fx_basic_bstring.cpp
|
| diff --git a/core/src/fxcrt/fx_basic_bstring.cpp b/core/src/fxcrt/fx_basic_bstring.cpp
|
| index c54148d799bebb9a865c7d227c8688e60d358bde..0d4f860b3290698e2dc8f5f59d604850465eb5bd 100644
|
| --- a/core/src/fxcrt/fx_basic_bstring.cpp
|
| +++ b/core/src/fxcrt/fx_basic_bstring.cpp
|
| @@ -1082,7 +1082,7 @@ FX_DWORD CFX_ByteStringC::GetID(FX_STRSIZE start_pos) const
|
| if (m_Length == 0) {
|
| return 0;
|
| }
|
| - if (start_pos >= m_Length) {
|
| + if (start_pos < 0 || start_pos >= m_Length) {
|
| return 0;
|
| }
|
| FX_DWORD strid = 0;
|
|
|