Post Reply 
Proxo's Byte Limit...
Jun. 29, 2017, 03:18 AM
Post: #3
RE: Proxo's Byte Limit...
I just ran into this limit (trying to sane-ify some page with over 64KB of CSS) and although the link in the OP is no longer alive due to the demise of CastleCops, I managed to retrieve a copy of the patch from the archive and have attached it here for future reference.

There is a hardcoded limit of 32767, which the patch simply changes to 99999, but I believe it should be OK to remove the limit completely and simply rely on common sense and your own discretion on how high you want to be (that didn't come out quite right... but you get the idea Big Teeth)

For those truly paranoid about running the patching executables, to effect the patch you can simply open a hex editor, search for
Code:
81 FB FF 7F 00 00 7E 05 BB FF 7F 00 00
which you should find at offset 0000AF99, and replace with
Code:
81 FB 9F 86 01 00 7E 05 BB 9F 86 01 00
      ^^^^^^^^^^^          ^^^^^^^^^^^
(The underlined bytes are the hardcoded limit. 00007fffh = 32767, and 0001869fh = 99999. What the code is doing is comparing the limit with the hardcoded one, and setting it to the latter if it exceeds.)

If you want to go the whole hog and remove the limit completely, change one byte to
Code:
81 FB FF 7F 00 00 EB 05 BB FF 7F 00 00
                  ^^
which basically bypasses the check completely. Enjoy responsibly Smile!

(It's not like I wouldn't know how to fix it, but it was nice to have a reference.)


Attached File(s)
.zip  patch_-byte_limit-_129.zip (Size: 4.42 KB / Downloads: 769)
Add Thank You Quote this message in a reply
[-] The following 4 users say Thank You to amy for this post:
chatterer, usr, zoltan, mizzmona
Post Reply 


Messages In This Thread
Proxo's Byte Limit... - ProxRocks - Oct. 07, 2008, 04:04 PM
RE: Proxo's Byte Limit... - lnminente - Oct. 07, 2008, 04:48 PM
RE: Proxo's Byte Limit... - amy - Jun. 29, 2017 03:18 AM
RE: Proxo's Byte Limit... - zoltan - Jul. 16, 2017, 12:25 AM
RE: Proxo's Byte Limit... - amy - Jul. 22, 2017, 10:56 PM
RE: Proxo's Byte Limit... - referrer - Dec. 24, 2018, 02:53 AM
RE: Proxo's Byte Limit... - amy - Dec. 24, 2018, 04:57 AM
RE: Proxo's Byte Limit... - referrer - Dec. 24, 2018, 08:25 AM
RE: Proxo's Byte Limit... - amy - Dec. 25, 2018, 10:25 PM
RE: Proxo's Byte Limit... - referrer - Dec. 26, 2018, 12:06 AM

Forum Jump: