whats an illegal address
what do we reffer as an illegal address?
any references. or ideas |
What kind of address? An illegal memory address is an address that your program is not permitted to access. Modern operating systems give processes virtual address spaces and map address onto physical memory. A program that tries to access unmapped memory will not be allowed to do so (this is something of a simplification, but basically accurate).
|
thanx for response ,btmiller,
u mean to say except for the allocated range of addresses to our program/task/process, anything every address our 'entity' tries to access is illegal. |
or its a particular set of addresses in the memory our program should not address at all
|
The only thing that I can think about right now that could lead into an illegal address, is when using pointers, for example:
Code:
|
thanx Megaman X,
for the illustration :-) |
You are welcome kapsikum ;). I hope I got that address thing right though... I've not been very accurate replying to posts here lately... gheh.
|
well , u r right
Megaman X |
well is there any way in linux to know which are the address range which the program can access?
|
Hello, On Windows there is an API named VirtualQuery, using which one
can find whether a memory region is legal or illegal, can anybody tell me an API with the same functionality on Linux. |
All times are GMT -5. The time now is 04:20 AM. |