Questions tagged [bounds-checker]

A software developer tool used to detect the inappropriate usage of memory regions.

A "Bounds Checker", in the computing world, is a tool used to analyze a program, either through static code inspection or through direct testing of the running program, in order to ensure that all references to data objects are done according to their proper rules. In particular, memory buffer usage does not overflow nor underflow the memory buffer's allocated space. Such tools are often used in the search for memory leaks and other such flaws in running programs.

The name probably derives from the product BoundsChecker, originally produced by Nu-Mega Technologies in the early 1990s.

27 questions
1
vote
1 answer

Xcode Sanitizer How to Enable

Using Xcode 12, Apple Clang Address Sanitizer, I enable... Enable C++ Container Overflow Checks (for both Debug and Release). I wish Enable C++ Container Overflow Checks to give me run-time warnings, eg. by translating each [] into an .at(). I run a…
mrchance
  • 1,133
  • 8
  • 24
1
vote
1 answer

@propagate_inbounds in Julia

Consider the following case: struct A <: AbstractArray{Int, 2} N::Int end struct B <: AbstractArray{Int, 2} A::A Func end ... @inline Base.getindex(A::A, i::Int, j::Int) = begin @boundscheck (1 <= i <= A.N && 1 <= j <= A.N) ||…
Robert W.
  • 113
  • 4
1
vote
3 answers

Can you start and stop boundschecker (DevPartner)?

I'm trying to use boundschecker to analyze a rather complex program. Running the program with boundschecker is almost too slow for it to be of any use since it takes me almost a day to run the program to the point in the code where I suspect the…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
1
vote
1 answer

BoundsChecker shows incorrect memory leak message

I'm using BoundsChecker9.1 with visual c++. I have a class class Sample{ public: vector x; }; When I run my program the BoundsChecker tool reports all push_back() calls such as S.x.push_back(AnotherClass()) as memory leak.. Wouldn't…
Prabhu
  • 3,434
  • 8
  • 40
  • 48
1
vote
1 answer

Static Parameter Function Specialization in D

I've read somewhere that D supports specialization of functions to calls where arguments are compile-time constants. Typical use of this is in matrix power functions (if exponent is 2 x*x is often faster than the general case). I want this in my…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
3 answers

WPF 3D :check if a cube can completely contain another cube

I am working on drop & drop in 3D. I have created 3D spaces (rooms) with walls (cubes) which act as place holders for objects (assume a smaller cubes) being dropped. How do I go about figuring out : if the user drops the object at edges of the room…
CF_Maintainer
  • 973
  • 2
  • 12
  • 30
0
votes
1 answer

DevPartner BoundsChecker breaks my program

I am working on a program which I suspect to have one or more memory leaks. Some other answer on Stack Overflow told me to try DevPartner BoundsChecker (one of many others I tried). Now when I run my program with BoundsChecker running, it will…
bastibe
  • 16,551
  • 28
  • 95
  • 126
0
votes
0 answers

Intel mpx : what cause gcc a [-Wchkp] warming if there’s no out of bound operations

Intel mpx is a set of processor instructions that allow to check bounds of functions. If an overflow is detected through Intel mpx, a SIGSEV signal is raised even if the program would still be able to run if it was compiled without intel mpx. While…
user2284570
  • 2,891
  • 3
  • 26
  • 74
0
votes
1 answer

Unable to detect Memory issue using BoundsChecker

recently we observed that our application server memory is increasing with some client API, in the end it leads to crash. so we tried using boundschecker and it shows NO memory leak and leads to crash as memory is increasing ( private bytes are…
Ashish Kasma
  • 3,594
  • 7
  • 26
  • 29
0
votes
1 answer

Check STL bounds in Debug and Release with MinGW

I'm working on a project (settlers 2.5 return to the roots namely) which suffers some problems. I hope to be able to solve some of them by using only stl containers and bounds checking. So is it somehow possible to use bounds-checking in STL…
Flamefire
  • 5,313
  • 3
  • 35
  • 70
0
votes
2 answers

Detecting memory leak using boundsChecker

I am instrumenting my source with boundsChecker for memory detection but when i build it with native c/c++ instrumentation manager's Error detection type of instrumentation , i am getting build errors. when i see the output window it is showing…
0
votes
2 answers

fbounds checking not working, any replacement?

I was trying to get the fbounds checking to work, but I did not succeed. I get a following error: /tmp/cczxKZzn.s: Assembler messages: /tmp/cczxKZzn.s:48: Error: invalid instruction suffix for `push' /tmp/cc9xD8T3.s:125: Error: invalid instruction…
Peter Cerba
  • 806
  • 4
  • 14
  • 26
1
2