Basic HTML version of Foils prepared April 7 1998

Foil 58 Byte Code Verification

From Basic Principles of Java and Internet Security CPS616 Web Technologies -- Spring 98. by Geoffrey C. Fox


1 First one checks that .class file has correct format
2 Checks all that can be done without looking at byte codes
  • this includes superclass checking, verification of constant pool, and legal names and types for field and method references, final classes cannot be subclassed or overwritten
3 Then one looks at the byte code and checks that as executed it will give finite size stacks, correct typing for registers, fields and methods
4 One does not download the byte codes of required classes. However one does check that the class is used consistently with its definition
5 Some steps are for run time efficiency such as checking for some run time exceptions can be done at verification stage and removed in running code.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998