Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  info.txt

  Sprache: Text
 

Tests the fix for b/74116990

The JIT was reading into incorrect dex files during class redefinition if a
native method was present.

The transformed dex file is specifically crafted to have exactly 4 methodIDs in
it. They are (in order):
  (0) Ljava/lang/Object;-><init>()V
  (1) Lxyz/Transform;-><init>()V
  (2) Lxyz/Transform;->bar()V
  (3) Lxyz/Transform;->foo()V

In the transformed version of the dex file there is a new method. The new list of methodIDs is:
  (0) Lart/Test1949;->doNothing()V
  (1) Ljava/lang/Object;-><init>()V
  (2) Lxyz/Transform;-><init>()V
  (3) Lxyz/Transform;->bar()V
  (4) Lxyz/Transform;->foo()V

This test tries to get the JIT to read out-of-bounds on the initial dex file by getting it to
read the 5th method id of the new file (Lxyz/Transform;->foo()V) from the old dex file (which
only has 4 method ids).

To do this we need to make sure that the class being transformed is near the end of the
alphabet (package xyz, method foo). If it is further forward than the other method-ids then the
JIT will read an incorrect (but valid) method-id from the old-dex file. This is why the error
wasn't caught in our other tests (package art is always at the front).

The final method that causes the OOB read needs to be a native method because that is the only
method-type the jit uses dex-file information to keep track of.

Messung V0.5 in Prozent
C=85 H=90 G=87

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-29) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik
 




Impressum  | Ethik und Gesetz  | Anforderungen  | Kontakt  | Seitenstruktur  | © 2026 JDD |