Oh the Vulgarity!
OMG why can't I be that funny!
Going to get me in trouble for laughing at work!
Lol.. "prev_slut" I LOVE IT!!!
So, wait, isn't it also kind of a WTF that they would separate INDIVIDUALS and MARRIED COUPLES since either way each person gets $800.00?
Unless of course a "COUPLE" means more or less than the usual two.
This was a fun bug to find in 10,000,000+ lines of code. It was a "fix" for another bug.
Original code which "worked":
void state_menu(Base_Op * base_op)
{
static clut * prev_clut = NULL;
...
if( prev_clut == NULL )
{
prev_clut = (Clut*)malloc(sizeof(Clut));
}
...
set_clut(prev_clut);
...
}
[i]Note: free(prev_clut); never clalled[/i]
At some point someone changed where the variable was initialized:
void state_menu(Base_Op * base_op)
{
static clut * prev_clut;
...
prev_clut = NULL;
...
if( prev_clut == NULL )
{
prev_clut = (Clut*)malloc(sizeof(Clut));
}
...
set_clut(prev_clut);
...
}
Of course since prev_clut is never freed and static the memory is never released and every time this function gets called it grabs another "Clut" (about 20k) off the heap the machine would eventually crash given enough time. What made this REALLY fun was that no one knew how to reproduce it, no one besides end users had seen it, I did not introduce it, and the only place it was being used was in Malta (I am in the US).
Don't tear me a new one too badly! I tried!
While not a good captcha method I still have to say it is neat.
I feel like writing a table driven image processor now!
@stratos said:
i'm actually more interested in what that one order is that was important enough to hide the company name from. But i'm just nosey like that.
Dentist..
Wow, I guess it was just more obvious to me...
Look at the last charge.
I thought it was at least Side Bar worthy.
Or I guess it could be the last thing I purchase before I die at the youthful age of 197..
Punks got ahold of my credit card!
No, I don't work at a bank, although my previous job was for a company that wrote a lot of the awful software Banks use.
Another utility here allows valid passwords to only consist of consonants.
No evil vowels, numbers, or symbols are allowed for that one.