You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not checked that the number of bytes of input_str is less than or equal to BUF_SIZE.
It is considered that a memory leak has occurred when allocating a character string of a size exceeding BUF_SIZE after allocating an area for BUF_SIZE.
BUF_SIZE, MIN_INPUT_BUFFER_SIZE, MAX_INPUT_BUFFER_SIZE can not be set with setting file, options, etc. only input-buffer-size
The problem is that execution will not stop even if a memory leak occurs
Warn if input string exceeds BUF_SIZE also python-wrapper
The text was updated successfully, but these errors were encountered:
ankokumoyashi
changed the title
Memoly leak when use python-wrapper and input too long sentence
Memoly leak when use python-wrapper and input string is too long
Nov 28, 2018
memoly leak When the following conditions are fullfilled
How to reproduce
versions
code
result
However, in the case of the following code
Probable Cause
mecab/mecab/src/tokenizer.h
Lines 42 to 53 in 3a07c4e
Temporary solution
mecab/mecab/src/common.h
Lines 72 to 74 in 3a07c4e
before
after
Proposed solution
The problem is that execution will not stop even if a memory leak occurs
The text was updated successfully, but these errors were encountered: