problem with export

From: [at]} <ftkachov{>
Date: Wed, 9 Jul 2003 01:54:51 +0400 (MSK DST)

----boundary-LibPST-iamunique-2027342588_-_-
Content-type: text/plain

Hi!

Here is another aspect of the problem of (read-only) export of array
elements mentioned earlier:

If one declares a global variable in one module:

        VAR a-: POINTER TO ARRAY OF INTEGER;

then the array's elements are r/w accessible from the outside.

I think a stricter discipline is warranted:
exported pointer should only give automatic access to the pointer
-- not to the elements of the structure.

These problems with export of array elements constitute a security hole
that needs to be shut.
Especially if one has in view scientific and engineering
applications where BB has a significant potential.

Cheers
Fyodor Tkachov
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-2027342588_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIVxwYXINClxwYXINCkhlcmUgaXM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CBzcGFtLiBQbGVh
c2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5
LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheX19AOMTYVU9Rg==


----boundary-LibPST-iamunique-2027342588_-_---
Received on Tue Jul 08 2003 - 23:54:51 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:09 UTC