Ignore:
Timestamp:
Dec 21, 2012, 10:37:13 AM (13 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b27 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/jdk/src/share/native/java/net/net_util.c

    r278 r406  
    11/*
    2  * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
     2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    6969    IPv6_available = IPv6_supported() & (!preferIPv4Stack);
    7070    initLocalAddrTable ();
     71    parseExclusiveBindProperty(env);
     72
    7173    return JNI_VERSION_1_2;
    7274}
  • trunk/openjdk/jdk/src/share/native/java/net/net_util.h

    r278 r406  
    11/*
    2  * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
     2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    121121
    122122void initLocalAddrTable ();
     123void parseExclusiveBindProperty(JNIEnv *env);
    123124
    124125void
  • trunk/openjdk/jdk/src/share/native/sun/font/layout/LookupProcessor.cpp

    r278 r406  
    8787        if (selectMask != 0) {
    8888            const LookupTable *lookupTable = lookupListTable->getLookupTable(lookup);
     89
     90            if (!lookupTable)
     91                continue;
     92
    8993            le_uint16 lookupFlags = SWAPW(lookupTable->lookupFlags);
    9094
     
    125129        le_uint16 lookupListIndex = SWAPW(featureTable->lookupListIndexArray[lookup]);
    126130
     131        if (lookupListIndex >= lookupSelectCount)
     132            continue;
     133
    127134        lookupSelectArray[lookupListIndex] |= featureMask;
    128135        lookupOrderArray[store++] = lookupListIndex;
     
    136143        LETag scriptTag, LETag languageTag, const FeatureMap *featureMap,
    137144        le_int32 featureMapCount, le_bool orderFeatures)
    138     : lookupListTable(NULL), featureListTable(NULL), lookupSelectArray(NULL),
     145    : lookupListTable(NULL), featureListTable(NULL), lookupSelectArray(NULL), lookupSelectCount(0),
    139146      lookupOrderArray(NULL), lookupOrderCount(0)
    140147{
     
    175182        lookupSelectArray[i] = 0;
    176183    }
     184
     185    lookupSelectCount = lookupListCount;
    177186
    178187    le_int32 count, order = 0;
     
    192201
    193202        featureTable = featureListTable->getFeatureTable(featureIndex, &featureTag);
     203
     204        if (!featureTable)
     205            continue;
     206
    194207        featureReferences += SWAPW(featureTable->lookupCount);
    195208    }
  • trunk/openjdk/jdk/src/share/native/sun/font/layout/LookupProcessor.h

    r278 r406  
    7878
    7979    FeatureMask             *lookupSelectArray;
     80    le_uint32               lookupSelectCount;
    8081
    8182    le_uint16               *lookupOrderArray;
Note: See TracChangeset for help on using the changeset viewer.