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

m_threadPoolRefCount可能栈溢出 #10

Open
liubotao opened this issue Jan 10, 2017 · 0 comments
Open

m_threadPoolRefCount可能栈溢出 #10

liubotao opened this issue Jan 10, 2017 · 0 comments

Comments

@liubotao
Copy link

liubotao commented Jan 10, 2017

在redisproxy.cpp 318行中

EventLoopThread* loopThread = m_eventLoopThreadPool->thread(m_threadPoolRefCount % threadCount);
++m_threadPoolRefCount;

m_threadPoolRefCount初始化为 unsigned int m_threadPoolRefCount; 如果大量的请求将会导致m_threadPoolRefCount超过unsigned int的最大值从而导致值异常程序崩溃

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

1 participant