[SERVER-1753] mongo shell crashes when an illformed bsonsize operation is performed Created: 08/Sep/10 Updated: 12/Jul/16 Resolved: 08/Sep/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 1.6.2 |
| Fix Version/s: | 1.7.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alvin Richards (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
> 1.6.2 for 64bit Centos from stable RPMs |
||
| Operating System: | ALL |
| Participants: |
| Comments |
| Comment by auto [ 08/Sep/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix Object.bsonsize with null param |
| Comment by Alvin Richards (Inactive) [ 08/Sep/10 ] |
|
Reproduce: Where collection "foo" does not exist > Object.bsonsize(db.foo.findOne()) Tue Sep 7 18:09:30 0x242e 0x97d5d1fb 0xffffffff 0x12171f 0x199f13 0x1ab614 0x19a8e9 0x15bc7d 0x15bbd4 0x15bade 0x128ec3 0x731f 0x9043 0x1a26 With the correct collection name you get > Object.bsonsize(db.blogs.findOne()) |