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:
parent
d6508107f7
commit
1bbd5cecff
5 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue