Public feed #602403

Stuff

public text v1 · immutable
Raw Edit
·published 2007-07-04 01:48 UTC
rendered paste body
        day = tb->tm_wday * 3;          /* index to correct day string */
        mon = tb->tm_mon * 3;           /* index to correct month string */
        for (i=0; i < 3; i++,p++) {
                *p = *(__dnames + day + i);
                *(p+4) = *(__mnames + mon + i);
^^ bugged peice of code

 	antrix.exe!asctime(const tm * tb=0x00000000)  Line 102 + 0x3	C
 	antrix.exe!Map::BuildXMLStats(char * m_file=0x0279a4c0)  Line 248 + 0x1a	C++
 	antrix.exe!WorldCreator::BuildXMLStats(char * m_file=0x0279a4c0)  Line 623	C++
 	ServerStatusPlugin.dll!StatDumper::DumpStats()  Line 279 + 0x1e	C++
 	ServerStatusPlugin.dll!CallbackP0<StatDumper>::execute()  Line 37 + 0x1d	C++
 	antrix.exe!EventableObjectHolder::Update(unsigned long time_difference=63)  Line 263 + 0x14	C++
 	antrix.exe!World::Update(long diff=63)  Line 958	C++
 	antrix.exe!WorldRunnable::run()  Line 64	C++
 	antrix.exe!thread_func(void * args=0x11206010)  Line 35 + 0xd	C++
 	antrix.exe!_threadstartex(void * ptd=0x113c5840)  Line 241 + 0xd	C
 	kernel32.dll!77e64829() 	

+	tb	0x00000000 {tm_sec=??? tm_min=??? tm_hour=??? ...}	const tm *
+	ptd	0x113c5840 {_tid=??? _thandle=??? _terrno=??? ...}	_tiddata *
+	retval	0x131954b0 <Bad Ptr>	char *
	mon	37223008	int
	i	37223300	int
+	p	0x131954b0 <Bad Ptr>	char *
	day	37223300	int