Skip to content

IndexOutOfBoundsException in ELFSectionHeaders runnning on old IcedTea Java 8 version on ARMv7 #1579

@bubbleguuum

Description

@bubbleguuum

Note that this report is via a user a my Java program and that I do not have access to the hardware mentioned.

  1. Version of JNA and related jars

5.14.0

  1. Version and vendor of the java virtual machine

IcedTea 1.8.0_275

  1. Operating system

Synology NAS, DSM 6.2, Linux 3.10.105

  1. System architecture (CPU type, bitness of the JVM)

ARMv7, Little Endian (via sun.cpu.endian)

  1. Complete description of the problem

Platform.isWindows() crashing with:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:659)
	at java.util.ArrayList.get(ArrayList.java:435)
	at com.sun.jna.ELFAnalyser$ELFSectionHeaders.<init>(ELFAnalyser.java:266)
	at com.sun.jna.ELFAnalyser.parseEabiAapcsVfp(ELFAnalyser.java:202)
	at com.sun.jna.ELFAnalyser.runDetection(ELFAnalyser.java:190)
	at com.sun.jna.ELFAnalyser.analyse(ELFAnalyser.java:68)
	at com.sun.jna.Platform.isSoftFloat(Platform.java:276)
	at com.sun.jna.Platform.getCanonicalArchitecture(Platform.java:265)
	at com.sun.jna.Platform.<clinit>(Platform.java:132)
  1. Steps to reproduce

Call Platform.isWindows() to trigger that static initializer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions