summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/vmcircbuf_createfilemapping.h
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2021-03-24 17:40:36 -0400
committerMarcus Müller <marcus@hostalia.de>2021-03-25 13:32:11 +0100
commit01de47a2dc75f7f0ce3e8077084c85182601e35f (patch)
tree8ae611c9034560b88cb019517a71f11729753c00 /gnuradio-runtime/lib/vmcircbuf_createfilemapping.h
parent818c24ad607a544a12400744fc965d1e78f7b3b1 (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_createfilemapping.h')
-rw-r--r--gnuradio-runtime/lib/vmcircbuf_createfilemapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/vmcircbuf_createfilemapping.h b/gnuradio-runtime/lib/vmcircbuf_createfilemapping.h
index fb40937d4e..9aa64b2eee 100644
--- a/gnuradio-runtime/lib/vmcircbuf_createfilemapping.h
+++ b/gnuradio-runtime/lib/vmcircbuf_createfilemapping.h
@@ -28,7 +28,7 @@ class GR_RUNTIME_API vmcircbuf_createfilemapping : public gr::vmcircbuf
{
public:
// CREATORS
- vmcircbuf_createfilemapping(int size);
+ vmcircbuf_createfilemapping(size_t size);
~vmcircbuf_createfilemapping() override;
#ifdef HAVE_CREATEFILEMAPPING
private:
@@ -64,7 +64,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 */