View Issue Details

IDProjectCategoryView StatusLast Update
0001797unrealdocumentationpublic2004-05-08 14:43
Reportermaniac Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionopen 
Product Version3.2 
Summary0001797: -tampachat.webchatting.com- *** Notice -- *** TROUBLE: [BUG] int_to_base64() called for insane value 2147483647. Please report!
Descriptionrepeats this message about once every 5 sec to ircops...very annoying...

-tampachat.webchatting.com- *** Notice -- *** TROUBLE: [BUG] int_to_base64() called for insane value 2147483647. Please report! ***
Steps To Reproducelog on then /oper
3rd party modules

Activities

tabrisnet

2004-05-08 12:36

reporter   ~0006133

actually, it's not throttled nor monotonic.

I'm having the same problem on this network, with another ircd I just fresh-compiled.

uname -a reports:
Linux hostnamehere 2.4.25 #1 compiledatehere i686 i686 i386 GNU/Linux

This is RedHat 9 (Shrike) according to /etc/issue

Don't know about tampachat's.

syzop

2004-05-08 13:20

administrator   ~0006134

Interresting. Let me explain what it is and why I added it:

The base64 routines are mainly used for timestamps (but also for server numerics), if the value is over 2147483646 it will give this warning... FYI, a timestamp value of '2147483647' is 'Tue Jan 19 04:14:07 2038' (in GMT+2), so this is very unlikely to ever be correct.

Now why I added this? It seemed that in some cases insane values like on opteron/ia64 could get very large (since longs are 64bit at that) it could cause a buffer overflow [underflow, actually] -> memory corruption => crashes... BUT... 2147483647 is just ok, 2147483648 (cannot be reached with 32bits longs) or above gives problems... I guess I'll just modify it so you guys won't get these annoying 'false positives', but ofcoz I still wonder why it would ever get called with a timestamp in the year 2038 ;).

tabrisnet

2004-05-08 14:07

reporter   ~0006138

i thought it was related to a corrupted ircd.tune, but it appears not (since it sitll happens, tho I fixed the desync bug I was encountering)

syzop

2004-05-08 14:43

administrator   ~0006139

Fixed in CVS (.2234.2.6).
Checks now if a value is >2147483647 (which is only possible on 64 bit archs), if so it will abort().

Issue History

Date Modified Username Field Change
2004-05-08 11:39 maniac New Issue
2004-05-08 12:36 tabrisnet Note Added: 0006133
2004-05-08 13:20 syzop Note Added: 0006134
2004-05-08 14:07 tabrisnet Note Added: 0006138
2004-05-08 14:43 syzop Status new => closed
2004-05-08 14:43 syzop Note Added: 0006139