Yes. The while statement can't take variable arguments. Also, ellipsis is not a standalone expression. Also, if "fileSize" is exactly 8192 then ellipsis will execute because "bytesRemaining" will equal zero. If your compiler actually compiles ellipsis and "fileSize" is exactly 8192, then something bad will probably happen. Either the undefined behavior of the compiled ellipses or the unexpected negative number will likely cause a crash.
Let me guess. 8192 byte buffer and assumption in code that <=0 [byte count/-1 error] from read() means read error.
Sometimes you will get zero bytes read return values. Like when there really isn't a byte more to read. So zero bytes available doesn't signal an error.
I'd love to know what's corrupting their cache. That the response is "delete the cache and profile" is rather pathetic for an expensive program like Dreamweaver.
If you want to sell your product as closed source, IMO you should put something into place to detect corruption, or at least diagnose how it occurs.
Even worse is that this whole article is about workarounds... Unless I'm mistaken, these seem to be known issues - will Adobe be making fixes? I'm fairly certain that an 8kb bug should be fixed pretty easily.
Ah, this takes me back to my Dreamweaver days. I remember when it wouldn't let me edit a file unless I deleted a certain Dreamweaver configuration file that wasn't quite working correctly. I'm not sure why Dreamweaver couldn't just delete the file itself, but it was a real pain having to find the file and delete it so Dreamweaver could re-generate it again.
I remember dealing with this when I first started developing. One of my senior developers thought it had to do with some kind of semicolon thresholds. Mainly because it more often than not happened in his CSS files. The solution is easy. Just add another comment and you'll surpass the 8kb size and be fine.
The interestingess of a bug is not necessarilly related to the release date of the program it appears in.
It's interesting as a classic example of an off-by-one bug, one that happens in seemingly strange conditions (8K multiples), and one that affected a major product from a big company.
I can't find much of anything particularly interesting about this link. Is there a fix for this bug? Discussion about what causes it? I did a search and couldn't find anything really useful about this. Maybe a break down of the troubleshooting involved behind locating this bug, now that'd be interesting.