What are the insecurities involved with the Pascal?

What are the insecurities involved with the Pascal?



The insecurities involved in Pascal are as follows:

- Infinite loop: this is an area that allows the program to run for a longer period of time and it becomes hard to control and terminate it.

- It is shown by: while true do;

- Insecure variants: the variants used should be able to change the pointer to an integer or vise versa this can create errors when writing big programs.

- It is shown by:

type intptr = ^integer;
convert = record
case boolean of
false: (i: integer);
true: (p: intptr)
{ end }
end;
function int2ptr(i: integer): intptr;
var cr: convert;
begin
cr.i := i; { place integer }
int2ptr := cr.p { return pointer }
end;
function ptr2int(p: intptr): integer;
var cr: convert;
begin
cr.p := p; { place pointer }
ptr2int := cr.i { return integer }
end;
- Initialization: this is very important because the result might differ if the initialization is being done.

procedure x;
var p: ^integer;
begin
p^ := 6;
Post your comment