[SERVER-21344] The size field in a CachedBSONObj instance is not endian-safe Created: 07/Nov/15 Updated: 11/Mar/16 Resolved: 25/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Portability |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bryan Chan | Assignee: | Tess Avitabile (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Platforms F (01/29/16) |
| Participants: |
| Description |
|
The first 4 bytes in the buffer are cast into an int in native byte order for read/write. This is incorrect on big-endian platforms. |
| Comments |
| Comment by Githook User [ 25/Jan/16 ] |
|
Author: {u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}Message: |