diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2021-03-24 17:40:36 -0400 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2021-03-25 13:32:11 +0100 |
commit | 01de47a2dc75f7f0ce3e8077084c85182601e35f (patch) | |
tree | 8ae611c9034560b88cb019517a71f11729753c00 /gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h | |
parent | 818c24ad607a544a12400744fc965d1e78f7b3b1 (diff) |
runtime: buffer factories use size_t
Addresses the issue where large buffer size requests get converted back
and forth to signed/unsigned and can cause an overflow and the buffer
allocation to fail
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h')
-rw-r--r-- | gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h b/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h index ea5460d9f5..15dbf392d7 100644 --- a/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h +++ b/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.h @@ -23,7 +23,7 @@ namespace gr { class GR_RUNTIME_API vmcircbuf_mmap_shm_open : public gr::vmcircbuf { public: - vmcircbuf_mmap_shm_open(int size); + vmcircbuf_mmap_shm_open(size_t size); ~vmcircbuf_mmap_shm_open() override; }; @@ -50,7 +50,7 @@ public: * * Call this to create a doubly mapped circular buffer. */ - gr::vmcircbuf* make(int size) override; + gr::vmcircbuf* make(size_t size) override; }; } /* namespace gr */ |