1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 19:25:38 +02:00

2005-03-02 Alain Magloire

Fix for PR 85043: NPE when calling Ar.isARHeader(null);
	* utils/org/eclipse/cdt/utils/elf/AR.java
	* utils/org/eclipse/cdt/utils/macho/AR.java
	* utils/org/elcipse/cdt/utils/som/AR.java
	* utils/org/eclipse/cdt/utils/xcoff/AR.java
This commit is contained in:
Alain Magloire 2005-03-02 21:07:02 +00:00
parent d6508107f7
commit 1bbd5cecff
5 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2005-03-02 Alain Magloire
Fix for PR 85043: NPE when calling Ar.isARHeader(null);
* utils/org/eclipse/cdt/utils/elf/AR.java
* utils/org/eclipse/cdt/utils/macho/AR.java
* utils/org/elcipse/cdt/utils/som/AR.java
* utils/org/eclipse/cdt/utils/xcoff/AR.java
2005-02-24 Alain Magloire
Part of 79596
* model/org/eclipse/cdt/internal/core/model/PathEntryManager.java

View file

@ -214,7 +214,7 @@ public class AR {
}
public static boolean isARHeader(byte[] ident) {
if (ident.length < 7
if (ident == null || ident.length < 7
|| ident[0] != '!'
|| ident[1] != '<'
|| ident[2] != 'a'

View file

@ -215,7 +215,7 @@ public class AR {
}
public static boolean isARHeader(byte[] ident) {
if (ident.length < 7
if (ident == null || ident.length < 7
|| ident[0] != '!'
|| ident[1] != '<'
|| ident[2] != 'a'

View file

@ -214,7 +214,7 @@ public class AR {
}
public static boolean isARHeader(byte[] ident) {
if (ident.length < 8
if (ident == null || ident.length < 8
|| ident[0] != '!'
|| ident[1] != '<'
|| ident[2] != 'a'

View file

@ -121,7 +121,7 @@ public class AR {
}
public static boolean isARHeader(byte[] ident) {
if (ident.length < 8
if (ident == null || ident.length < 8
|| ident[0] != '<'
|| ident[1] != 'b'
|| ident[2] != 'i'