Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
View | Details | Raw Unified | Return to bug 904
Collapse All | Expand All

(-)CDRInputStream.java (+6 lines)
Lines 1251-1256 Link Here
1251
        // read size (#bytes)
1251
        // read size (#bytes)
1252
        int size = _read4int( littleEndian, buffer, pos);
1252
        int size = _read4int( littleEndian, buffer, pos);
1253
1253
1254
        // Some ORBs wrongly encode empty string with a size 0
1255
        if (size == 0)
1256
        {
1257
            return "";
1258
        }
1259
1254
        if (size < 1)
1260
        if (size < 1)
1255
        {
1261
        {
1256
            throw new MARSHAL("invalid string size: " + size);
1262
            throw new MARSHAL("invalid string size: " + size);

Return to bug 904