Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for "Not enough space" #124

Open
cathoderaymission opened this issue Nov 22, 2019 · 2 comments
Open

Fix for "Not enough space" #124

cathoderaymission opened this issue Nov 22, 2019 · 2 comments

Comments

@cathoderaymission
Copy link

In ctcdecode/src/binding.cpp change:

const char* end = str_i + strlen(labels)-1;
to
const char* end = str_i + strlen(labels);

I'd submit a patch, but I'm not 100% sure about the utf-8 stuff and how this is supposed to behave.

@cathoderaymission
Copy link
Author

cathoderaymission commented Nov 22, 2019

Forgot that:
int utf8_to_utf8_char_vec
needs to be changed to:
void utf8_to_utf8_char_vec
as there is no return. This causes a segfault.

@Taneb
Copy link

Taneb commented Dec 16, 2019

Thank you, this seems to fix the issue for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants