Hello, of a truth memory leaks are not good, but how dangerous can they be? Can a cracker use it to read some information hidden in your programme's memory space? What other ways can leaks be taken advantage of?
Memory leaks don't cause security vulnerabilities. They just make your program consume more and more memory over time. If let run long enough, a program consuming extreme amounts of memory can slow down a computer's overall performance.
> do OS limit the amount of memory assigned to a programme?
By itself, the kernel does not limit total memory used by individual processes; it just trims process working set sizes using a leaky bucket algorithm.