Bug 15331 - ldb wildcard matching makes excessive allocations
Summary: ldb wildcard matching makes excessive allocations
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.18.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-13 02:32 UTC by Andrew Bartlett
Modified: 2023-03-29 14:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bartlett 2023-03-13 02:32:43 UTC
During a wildcard match, even against a case sensitive or binary object, memory is allocated for each and every candidate match in ldb_wildcard_compare().
Comment 1 Samba QA Contact 2023-03-14 07:17:30 UTC
This bug was referenced in samba master:

cad96f59a08192df927fb1df4e9787c7f70991a2
Comment 2 Samba QA Contact 2023-03-29 14:27:42 UTC
This bug was referenced in samba v4-16-stable (Release samba-4.16.10):

ae3d2737949d9702c5526490c2155740a96a9adb
Comment 3 Samba QA Contact 2023-03-29 14:30:14 UTC
This bug was referenced in samba v4-17-stable (Release samba-4.17.7):

eb20778b5e66c4e011c9c264ddb8d29180fe6e89
Comment 4 Samba QA Contact 2023-03-29 14:31:27 UTC
This bug was referenced in samba v4-18-stable (Release samba-4.18.1):

680b865f183d3103cd7d465e6b921fb5f28627b8
Comment 5 Samba QA Contact 2023-03-29 14:34:09 UTC
This bug was referenced in samba v4-16-test:

ae3d2737949d9702c5526490c2155740a96a9adb
Comment 6 Samba QA Contact 2023-03-29 14:36:44 UTC
This bug was referenced in samba v4-17-test:

eb20778b5e66c4e011c9c264ddb8d29180fe6e89
Comment 7 Samba QA Contact 2023-03-29 14:39:46 UTC
This bug was referenced in samba v4-18-test:

680b865f183d3103cd7d465e6b921fb5f28627b8