Wilders Security Forums  

Go Back   Wilders Security Forums > Forum Information > General Topics
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old December 2nd, 2011, 11:37 AM
Ranget's Avatar
Ranget Ranget is offline
Frequent Poster
 
Join Date: Mar 2011
Location: Not Really Sure :/
Posts: 832
Default Small Bug in the private message count

Name:  Capture.PNG
Views: 196
Size:  5.7 KB

Lot of messages

i think it's a small bug of some sort
__________________
Spyshelter Premuim + MBAM Pro +Avast Free + Hardend FireFox + Secunia Update Checker
"Uncommon sense will increase your privacy; common sense will just make you common."
"The Worst Thing in the World is To look and not be able to Help "
  #2  
Old December 2nd, 2011, 11:45 AM
LowWaterMark LowWaterMark is offline
Administrator
 
Join Date: Aug 2002
Location: New England
Posts: 15,525
Default Re: Small Bug in the private message Count

Not a bug... you're just very popular!
  #3  
Old December 2nd, 2011, 11:45 AM
Ranget's Avatar
Ranget Ranget is offline
Frequent Poster
 
Join Date: Mar 2011
Location: Not Really Sure :/
Posts: 832
Default Re: Small Bug in the private message Count

heheh


Thanks

Back to Normal
__________________
Spyshelter Premuim + MBAM Pro +Avast Free + Hardend FireFox + Secunia Update Checker
"Uncommon sense will increase your privacy; common sense will just make you common."
"The Worst Thing in the World is To look and not be able to Help "
  #4  
Old December 2nd, 2011, 02:32 PM
MikeBCda MikeBCda is offline
Very Frequent Poster
 
Join Date: Jan 2004
Location: southern Ont. Canada
Posts: 1,535
Default Re: Small Bug in the private message Count

Wow, that's gotta be a new record, unread messages roughly 150x number of postings.
__________________
Intel Atom D2700, 2 gig RAM, Win 7 x64 SP1 & IE-10, Firefox 21.0 (default). 320 gig HD, 6Mb DSL, Win firewall, Avast 8.0.1489 free, SpywareBlaster, MBAM
---
My name is Any Key. Please don't hit me.
  #5  
Old December 2nd, 2011, 08:25 PM
Dude111 Dude111 is offline
Frequent Poster
 
Join Date: Sep 2008
Posts: 212
Default

Hey lowwaterMark,isnt 65535 the max the database can handle in 1 persons PM slot? (If allowed that many that is)

Last edited by Dude111 : December 7th, 2011 at 12:30 AM.
  #6  
Old December 3rd, 2011, 07:44 PM
LowWaterMark LowWaterMark is offline
Administrator
 
Join Date: Aug 2002
Location: New England
Posts: 15,525
Default Re: Small Bug in the private message Count

Quote:
Originally Posted by Dude111
Hey lowwaterMark, isnt 65535 the max the database can handle in 1 persons PM slot? (If allowed that many that is)
That's not actually where that value comes from when this error occurs. The variable that holds a member's "unread PM count" is of the SMALLINT type, and is also unsigned. So, it can only store values from 0 to 65535. The reason the value can get off is because of any locking or abort condition that prevents the value from being incremented when someone sends a member a new PM. Then when the member reads new PM, the value is decremented by one for each new PM read. If the value is 0 prior to reading another one, then it decrements from 0 to -1. Since the field is stored unsigned in the database, the -1 becomes 65535.

vBulletin considers this variable to be non-critical, so, they ignore any errors when attempting to write the value. These occur infrequently, so, it's not a big deal. But, since they do occur, vBulletin has built-in correction routines to fix the value. I believe the value is recounted when you, the owner of the PM, either: 1. delete a PM. 2. mark any/all PM as read, or, 3. mark any/all PM as unread. Each of those functions recounts the PM total and unread PM count, fixing the values for the member record.

So, if you ever see an odd value in the unread or total PM counts, just do one of those functions and they should be repaired.
  #7  
Old December 5th, 2011, 01:53 PM
CloneRanger's Avatar
CloneRanger CloneRanger is offline
Massive Poster
 
Join Date: Jan 2006
Location: Home usually
Posts: 3,860
Question Re: Small Bug in the private message count

@ LowWaterMark

65535 is the same # of Ports we have !

I know it's not port related but wondered if there was more too it that just a coincidence ? For eg: some programming etc type thing ?

TIA
__________________
.
Malware = You don't scare me

A different perspective https://rt.com - https://rt.com/on-air
  #8  
Old December 5th, 2011, 02:46 PM
LowWaterMark LowWaterMark is offline
Administrator
 
Join Date: Aug 2002
Location: New England
Posts: 15,525
Default Re: Small Bug in the private message count

That maximum value is simply based upon the capacity of the standard 16-bit (2-byte) integer. It can represent 0 to 65535, if unsigned. Or, -32,768 to +32,767, if signed. This sized integer is a very commonly used variable in programming, especially for numerics that will have clearly limited values. The unlikelihood that someone would ever have more than 65535 unread PM lead vBulletin programmers to use this variable type for storing that value.
  #9  
Old December 6th, 2011, 04:04 AM
CloneRanger's Avatar
CloneRanger CloneRanger is offline
Massive Poster
 
Join Date: Jan 2006
Location: Home usually
Posts: 3,860
Thumbs up Re: Small Bug in the private message count

@ LowWaterMark

So it is a programming thing. Thanks for the info
__________________
.
Malware = You don't scare me

A different perspective https://rt.com - https://rt.com/on-air
  #10  
Old December 7th, 2011, 12:31 AM
Dude111 Dude111 is offline
Frequent Poster
 
Join Date: Sep 2008
Posts: 212
Default

Yes thanx Mark for the explain
 

Wilders Security Forums > Forum Information > General Topics « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:07 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums