[SERVER-69005] $internalBoundedSort should not accept empty sort pattern Created: 19/Aug/22  Updated: 29/Oct/23  Resolved: 12/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0, 6.0.2, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Matt Boros Assignee: Matt Boros
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1, v6.0
Sprint: QO 2022-08-22, QO 2022-09-05, QO 2022-09-19
Participants:
Linked BF Score: 18

 Description   

The jstestfuzz fuzzer crashed the server when handing the $internalBoundedSort stage an empty sort pattern. We don't have an assertion for non-emptiness so we should add one



 Comments   
Comment by Githook User [ 20/Sep/22 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-69005 $internalBoundedSort should not accept empty sort pattern

(cherry picked from commit a14ebbf41e0ae4346e806e1ac5d7a3fdaa42d529)
Branch: v6.0
https://github.com/mongodb/mongo/commit/94fb7dfc8b974f1f5343e7ea394d0d9deedba50e

Comment by Githook User [ 20/Sep/22 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-69005 $internalBoundedSort should not accept empty sort pattern

(cherry picked from commit a14ebbf41e0ae4346e806e1ac5d7a3fdaa42d529)
Branch: v6.1
https://github.com/mongodb/mongo/commit/832151ec174ca8ece535903664777d73d1ae0d37

Comment by Githook User [ 12/Sep/22 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-69005 $internalBoundedSort should not accept empty sort pattern
Branch: master
https://github.com/mongodb/mongo/commit/a14ebbf41e0ae4346e806e1ac5d7a3fdaa42d529

Comment by Matt Boros [ 12/Sep/22 ]

Renaming this ticket to be more accurate, since we've decided to take a different approach

Generated at Thu Feb 08 06:12:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.