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

SIGSEGV in TopicImpl.cpp partitioner_cb_trampoline #163

Closed
ihersht opened this issue Nov 5, 2014 · 1 comment
Closed

SIGSEGV in TopicImpl.cpp partitioner_cb_trampoline #163

ihersht opened this issue Nov 5, 2014 · 1 comment

Comments

@ihersht
Copy link

ihersht commented Nov 5, 2014

File TopicImpl.cpp function partitioner_cb_trampoline , line
std::string key(static_cast<const char *>(keydata), keylen);
Creating std::string with length 0 is this way is illegal.

Take a look at C++ standars (2003)
Table 40
data() points at the first element of an
allocated copy of the array whose
first element is pointed at by s
size() n

You cannot have array of size 0

@edenhill
Copy link
Contributor

This is a duplicate of issue #162

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

No branches or pull requests

2 participants