Introduction
Introduction Statistics Contact Development Disclaimer Help
fixing buffer overflow - ploot - simple plotting tools
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65…
Log
Files
Refs
Tags
README
LICENSE
---
commit ebff9e927a35af076a55e62732001c860c883244
parent 3b39b0db61c4795ea3c0af49b0c2151585e502b6
Author: Josuah Demangeon <[email protected]>
Date: Sat, 3 Feb 2018 23:43:37 +0100
fixing buffer overflow
Diffstat:
M ploot.c | 2 +-
M ploot.core | 0
2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ploot.c b/ploot.c
@@ -141,7 +141,7 @@ ring_add(double *ring, size_t len, size_t pos, double val)
{
*ring = val;
- return (pos >= len) ? pos + 1 : 0;
+ return (pos < len) ? pos + 1 : 0;
}
/*
diff --git a/ploot.core b/ploot.core
Binary files differ.
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.