Closed brandonhamilton closed 11 years ago
When a GUID is encountered in the save/load procedures of TBSONDocument, a buffer overflow results in an access violation.
This seems to be caused by the fact the in the TGUID object is aliased to an array of 12 bytes, however the StringToGUID call writes 16 bytes into the memory location.
Great find! Thank you. I've done 'absolute o' there in an attempt to save some space on the stack.
When a GUID is encountered in the save/load procedures of TBSONDocument, a buffer overflow results in an access violation.
This seems to be caused by the fact the in the TGUID object is aliased to an array of 12 bytes, however the StringToGUID call writes 16 bytes into the memory location.