From d2d594a8ff79ab05892216ab77aca13cef650a26 Mon Sep 17 00:00:00 2001 From: jeongsoolee09 Date: Thu, 16 Apr 2026 21:21:09 -0400 Subject: [PATCH 1/3] Add models of ::aligned_alloc, std::aligned_alloc, and bsl::aligned_alloc --- cpp/ql/lib/ext/allocation/Std.allocation.model.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/ql/lib/ext/allocation/Std.allocation.model.yml b/cpp/ql/lib/ext/allocation/Std.allocation.model.yml index 16b3d5bcebad..227cc4176c0d 100644 --- a/cpp/ql/lib/ext/allocation/Std.allocation.model.yml +++ b/cpp/ql/lib/ext/allocation/Std.allocation.model.yml @@ -12,4 +12,7 @@ extensions: - ["", "", False, "_malloca", "0", "", "", False] - ["", "", False, "calloc", "1", "0", "", True] - ["std", "", False, "calloc", "1", "0", "", True] - - ["bsl", "", False, "calloc", "1", "0", "", True] \ No newline at end of file + - ["bsl", "", False, "calloc", "1", "0", "", True] + - ["", "", False, "aligned_alloc", "1", "", "", True] + - ["std", "", False, "aligned_alloc", "1", "", "", True] + - ["bsl", "", False, "aligned_alloc", "1", "", "", True] From 553ed103c35589c3d25763b665bf1a7758618740 Mon Sep 17 00:00:00 2001 From: jeongsoolee09 Date: Thu, 16 Apr 2026 21:31:55 -0400 Subject: [PATCH 2/3] Add a change note --- .../change-notes/2026-04-16-add-model-for-aligned-alloc.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md diff --git a/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md b/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md new file mode 100644 index 000000000000..010fb0f69a15 --- /dev/null +++ b/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md @@ -0,0 +1,4 @@ +--- +category: minorAnalysis +--- +* Added models for `::aligned_alloc`, `std::aligned_alloc`, and `bsl::aligned_alloc`. These will now be recognized as `AllocationFunction`. From abec00cd341cafe441e1d4a2515cf87011e0aa31 Mon Sep 17 00:00:00 2001 From: Jeongsoo Lee Date: Fri, 17 Apr 2026 07:08:38 -0400 Subject: [PATCH 3/3] Update cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com> --- .../src/change-notes/2026-04-16-add-model-for-aligned-alloc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md b/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md index 010fb0f69a15..af97cee7f9e4 100644 --- a/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md +++ b/cpp/ql/src/change-notes/2026-04-16-add-model-for-aligned-alloc.md @@ -1,4 +1,4 @@ --- category: minorAnalysis --- -* Added models for `::aligned_alloc`, `std::aligned_alloc`, and `bsl::aligned_alloc`. These will now be recognized as `AllocationFunction`. +* Added `AllocationFunction` models for `aligned_alloc`, `std::aligned_alloc`, and `bsl::aligned_alloc`.