ggml-zdnn: switch to using deque to fix pointer deref problem

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
Aaron Teo
2025-07-29 15:55:33 +08:00
parent 3446807452
commit b28b423801
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
#include "ggml-zdnn.h"
#include <vector>
#include <deque>
#include <memory>
#include <vecintrin.h>
@@ -91,7 +92,7 @@ struct ggml_backend_zdnn_buffer_context {
bool owned;
int n_buffers;
std::vector<ggml_backend_zdnn_buffer> buffers;
std::deque<ggml_backend_zdnn_buffer> buffers;
};
#endif // GGML_ZDNN_IMPL

View File

@@ -6,6 +6,7 @@
#include "ggml-backend-impl.h"
#include <vector>
#include <deque>
#include <csignal>
#include <unistd.h>