Re: Validating a Function Address
- From: "Thorsten Albers" <albersRE@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 05:16:32 -0800
Michael C <nospam@xxxxxxxxxx> schrieb im Beitrag
<OxZqGNZHHHA.1248@xxxxxxxxxxxxxxxxxxxx>...
I think you're going too far with checks and will get odd side effects.
You'd need to check it every time you called the function pointer so will
get a reduction in performance.
You can't go too far with security checks. AFAIK only VC 6.0 has some
compiler switches by which some security checks are added. IMHO the good
performance of non-.NET applications mainly is based on a complete lack of
any security checkings. If these apps would implement the security checks
necessary they would be much slower - like .NET apps.
If you do happen to find a bad pointer thenside
your app will start to malfunction anyway which might cause other odd
effects.
No, not in any case. What e.g. about a pointer to a function in a PlugIn
DLL? If the code pointed to isn't available any longer this doesn't mean
that the app can't run any longer.
Extra testing would be required to check for these side effects asget
they might cause loss of data. The general thinking I believe is if you
something as serious as an invalid function pointer then your app shouldloss
terminate as something is seriously wrong and continuing might cause a
of data.
I can't see how this can be an argument against always checking the
pointers as far as possible.
--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------
.
- Follow-Ups:
- Re: Validating a Function Address
- From: Michael C
- Re: Validating a Function Address
- From: Karl E. Peterson
- Re: Validating a Function Address
- References:
- Validating a Function Address
- From: Chip Pearson
- Re: Validating a Function Address
- From: Karl E. Peterson
- Re: Validating a Function Address
- From: Thorsten Albers
- Re: Validating a Function Address
- From: Michael C
- Validating a Function Address
- Prev by Date: Re: Validating a Function Address
- Next by Date: Re: Validating a Function Address
- Previous by thread: Re: Validating a Function Address
- Next by thread: Re: Validating a Function Address
- Index(es):
Relevant Pages
|