Stats
Files: 28
Downloads: 288,342
Favorites: 2,596

Menu
» Home



New & Updated
» TipTop
» Frozen


WOWInterface

 
View Bug Report
TipTop - integer overflow
Bug #: 7720
File: TipTop
Date: 08-29-12 12:09 PM
By: bakuryu356
Status: Fixed
This bug pops up a lot, I can reproduce it by hitting a boss target dummy which has 750 million HP.

This is with the latest version, freshly installed and all saved variables wiped out.

1x integer overflow attempting to store 75090572800
<in C code>
TipTop-2.11\tiptop-2.11.lua:321: in function <TipTop\tiptop.lua:310>
<in C code>

Locals:
_ = GameTooltipStatusBar {
0 = <userdata>
SetStatusBarColor = <func> @TipTop\tiptop.lua:115
}
hp = 750905728
per = 75090572800
hpmult = nil
hpdiv = nil
maxhpmult = nil
maxhpdiv = nil
hpformat = nil
maxhpformat = nil
maxhp = 1
hp = 750905728
db = <table> {
raidIconX = "0"
healthText = true
raidIconSize = 16
factionIconY = "-4"
offsetX = "-2"
borderColor = <table> {}
anchor = "BOTTOMRIGHT"
bg = "brushed"
sbarbgcolor = <table> {}
healthBar = "TipTop Default"
onCursor = false
raidIconY = "0"
font = "Friz Quadrata TT"
textformat = "100%"
offsetY = "109"
classIcon = false
insideBar = false
factionIconSize = 32
scale = 1
border = "Seerah Solid"
bgColor = <table> {}
factionIconPosition = "TOPRIGHT"
inset = 0
factionIcon = false
showTalentText = true
diffColor = true
showTargetText = true
sbarcolor = <table> {}
borderWidth = 2.5
fontFlag = "None"
alpha = 1
sbarclass = true
classColor = true
raidIconPosition = "TOP"
topBar = false
itemColor = true
factionIconX = "-16"
elite = true
you = true
sbarbg = "TipTop Default"
}
UnitHealthMax = <func> =[C]:-1
UnitHealth = <func> =[C]:-1
ttHealth = ttHealth {
0 = <userdata>
}

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Seerah - 08-29-12 09:11 PM
I was only able to reproduce this once, on accident. I think it errored when the tip was fading for the target dummy. /shrug

In any case, I put a check in there to only set the text if the percent is <= 100. For some reason, the client was reporting the dummy to have a maxhp of 1 whenever this error fired (99.9% of the time, the maxhp was reported correctly).