Skip to content

Commit

Permalink
Merge pull request #129 from denizzzka/bounds_checks_alert
Browse files Browse the repository at this point in the history
bounds check alert added
  • Loading branch information
denizzzka committed Dec 10, 2018
2 parents 165af04 + 8740a0f commit 66ee9a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dpq2/result.d
Expand Up @@ -18,6 +18,14 @@ import core.exception: OutOfMemoryError;
import std.bitmanip: bigEndianToNative;
import std.conv: to;

version(D_NoBoundsChecks)
{
static assert(false,
`It is found what current version of dpq2 is not checks byte arrays bounds properly. `~
`To avoid security risks please do not disable built-in bounds check.`
);
}

/// Result table's cell coordinates
private struct Coords
{
Expand Down

0 comments on commit 66ee9a1

Please sign in to comment.