Journal: 2004-08-16

What twit-wits! Whoever wrote the bloomberg C api couldn't calculate a buffer size to save their lives. (Of course, degree of angst is probably proportional to the amount of time necessary to find the problem. :) Get this: The size of the incoming message seems to be 264 bytes. Yet, they ask for a buffer of size 576. If you give them a buffer of size 1024, they write 264 bytes to it, leaving the remaining bytes untouched. If you give them a buffer of size 576, they only write 240 bytes, leaving the remaining bytes untouched. That's less than the message size! If you are doing buffer recycling (a sensible thing to do), it is eminently likely that there will be valid looking garbage at the end of the truncated message, producing an even further garbled message!

[ < Prev | Calendar | Next > ]
C o m m e n t s :    
(nothing yet)
Edit