我的项目中发生了缓冲区溢出 [英] A buffer overrun has occurred in my project

查看:69
本文介绍了我的项目中发生了缓冲区溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个用于发送文件的程序使用udt.sdk.4.7a.win32,但是当我运行它时,出现了一条错误消息:

udtreceivefile.exe中发生了缓冲区溢出已损坏程序的内部状态。按Break调试程序或继续终止程序。

有关详细信息,请参阅帮助主题'如何调试缓冲区溢出问题'

它停在:_debugger_hook_dummy = 0这个方法:

 void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
{
/ *赋值0到_debugger_hook_dummy这样功能不会折叠零售* /
(_Reserved);
_debugger_hook_dummy = 0;
}





请帮我解决。

解决方案

< blockquote>你没有给我们任何进展。如何为初学者调用堆栈...

 


尝试逐步运行应用程序(调试)。您将获得代码中的行号,其中发生错误。然后检查函数的参数。


请显示您的源代码..


I wrote a program for sending file use udt.sdk.4.7a.win32 but when I run it,a error message had occurred:
"A buffer overrun has occurred in udtreceivefile.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'"
And it stops at: _debugger_hook_dummy = 0 in this method:

void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
{
  /* assign 0 to _debugger_hook_dummy so that the function is not folded in retail */
  (_Reserved);
  _debugger_hook_dummy = 0;
}



Please help me to solve it.

解决方案

You've given us nothing to go on. How about a call stack for starters...
 


Try to run aplication step by step (debug). You will get the line number in your code, where error occures. And then thy to check arguments of functions.


please show your source code ..


这篇关于我的项目中发生了缓冲区溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆