summaryrefslogtreecommitdiff
path: root/extra/yassl/include/buffer.hpp
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2012-02-13 13:40:12 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2012-02-13 13:40:12 +0200
commit0966b866b1ac8a9132f917c29244c31f99bb3893 (patch)
tree7b2a98292296f40f4cd0dc30daa53cccc8005886 /extra/yassl/include/buffer.hpp
parentf2e96ba17bb096cab5b2abbb1dce67bed2cf2dd2 (diff)
parent724af49cf01c29dae55fb0b4b43d1d265cf4f3f1 (diff)
downloadmariadb-git-0966b866b1ac8a9132f917c29244c31f99bb3893.tar.gz
merge from 5.0-security
Diffstat (limited to 'extra/yassl/include/buffer.hpp')
-rw-r--r--extra/yassl/include/buffer.hpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/extra/yassl/include/buffer.hpp b/extra/yassl/include/buffer.hpp
index a51bca9a630..2d7817a7ca2 100644
--- a/extra/yassl/include/buffer.hpp
+++ b/extra/yassl/include/buffer.hpp
@@ -46,12 +46,6 @@ typedef unsigned int uint;
const uint AUTO = 0xFEEDBEEF;
-// Checking Policy should implement a check function that tests whether the
-// index is within the size limit of the array
-struct Check {
- void check(uint i, uint limit);
-};
-
struct NoCheck {
void check(uint, uint);
@@ -66,7 +60,7 @@ struct NoCheck {
* write to the buffer bulk wise and have the correct size
*/
-class input_buffer : public Check {
+class input_buffer : public NoCheck {
uint size_; // number of elements in buffer
uint current_; // current offset position in buffer
byte* buffer_; // storage for buffer
@@ -132,7 +126,7 @@ private:
* Not using vector because need checked []access and the ability to
* write to the buffer bulk wise and retain correct size
*/
-class output_buffer : public Check {
+class output_buffer : public NoCheck {
uint current_; // current offset and elements in buffer
byte* buffer_; // storage for buffer
byte* end_; // end of storage marker