Go to the source code of this file.
|
int __cdecl | _RTC_DefaultErrorFuncW (int errType, const wchar_t *file, int line, const wchar_t *module, const wchar_t *format,...) |
|
_RTC_error_fnW __cdecl | _CRT_RTC_INITW0 (void *_Res0, void **_Res1, int _Res2, int _Res3, int _Res4) |
|
void __cdecl | _RTC_InitBase (void) |
|
void __cdecl | _RTC_Shutdown (void) |
|
void __cdecl | _RTC_Initialize (void) |
|
void __cdecl | _RTC_Failure (void *retaddr, int errnum) |
|
void __cdecl | _RTC_UninitUse (const char *_Varname) |
|
void __fastcall | _RTC_CheckStackVars (void *_Esp, _RTC_framedesc *_Fd) |
|
void __fastcall | _RTC_CheckStackVars2 (void *_Esp, _RTC_framedesc *_Fd, _RTC_ALLOCA_NODE *_AllocaList) |
|
void __fastcall | _RTC_AllocaHelper (_RTC_ALLOCA_NODE *_PAllocaBase, size_t _CbSize, _RTC_ALLOCA_NODE **_PAllocaInfoList) |
|
◆ _CRT_RTC_INITW0()
Definition at line 57 of file rtcapi.c.
63{
65}
int __cdecl _RTC_DefaultErrorFuncW(int errType, const wchar_t *file, int line, const wchar_t *module, const wchar_t *format,...)
◆ _RTC_AllocaHelper()
Definition at line 192 of file rtcapi.c.
196{
198
199
200 if ((_PAllocaBase != 0) &&
201 (_CbSize != 0) &&
202 (_PAllocaInfoList != 0))
203 {
204
205 char *guard = (char*)_PAllocaBase;
206 for (
i = 0;
i < _CbSize;
i++)
207 {
209 }
210
211
213
214
215 _PAllocaBase->
next = *_PAllocaInfoList;
216 *_PAllocaInfoList = _PAllocaBase;
217 }
218}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct _RTC_ALLOCA_NODE * next
◆ _RTC_CheckStackVars()
Definition at line 129 of file rtcapi.c.
132{
133 int i, *guard1, *guard2;
134
135
137 {
138
139 guard1 = (
int*)((
char*)_Esp + _Fd->
variables[
i].
addr -
sizeof(*guard1));
141
142
143 if ((*guard1 != 0xCCCCCCCC) || (*guard2 != 0xCCCCCCCC))
144 {
147 -1,
149 L"Stack corruption near '%s'\n",
151 }
152 }
153}
_RTC_error_fnW _RTC_pErrorFuncW
Referenced by _RTC_CheckStackVars2().
◆ _RTC_CheckStackVars2()
Definition at line 157 of file rtcapi.c.
161{
163 int *guard;
164
165
167
168
170 {
171
172 guard = (
int*)((
char*)
current +
current->allocaSize -
sizeof(*guard));
173
174
175 if ((
current->guard1 != 0xCCCCCCCC) ||
176 (
current->guard2[0] != 0xCCCCCCCC) ||
177 (
current->guard2[1] != 0xCCCCCCCC) ||
178 (
current->guard2[2] != 0xCCCCCCCC) ||
179 (*guard != 0xCCCCCCCC))
180 {
183 -1,
185 L"Stack corruption in alloca frame\n");
186 }
187 }
188}
struct task_struct * current
void __fastcall _RTC_CheckStackVars(void *_Esp, _RTC_framedesc *_Fd)
◆ _RTC_DefaultErrorFuncW()
◆ _RTC_Failure()
Definition at line 101 of file rtcapi.c.
104{
107 -1,
109 L"Invalid stack pointer value caught at %p, error %d\n",
110 retaddr,
111 errnum);
112}
◆ _RTC_InitBase()
Definition at line 69 of file rtcapi.c.
70{
73
75 {
79 }
80}
_RTC_error_fnW __cdecl _RTC_SetErrorFuncW(_RTC_error_fnW)
_RTC_error_fnW __cdecl _CRT_RTC_INITW(void *_Res0, void **_Res1, int _Res2, int _Res3, int _Res4)
int(__cdecl * _RTC_error_fnW)(int, const wchar_t *, int, const wchar_t *, const wchar_t *,...)
Referenced by _RTC_Initialize().
◆ _RTC_Initialize()
Definition at line 91 of file rtcapi.c.
92{
93
94
95
97}
void __cdecl _RTC_InitBase(void)
Referenced by __main().
◆ _RTC_Shutdown()
◆ _RTC_UninitUse()
Definition at line 116 of file rtcapi.c.
118{
121 -1,
123 L"Use of uninitialized variable %S!\n",
124 _Varname);
125}
◆ _RTC_pErrorFuncW