silverf0x / RpcView

RpcView is a free tool to explore and decompile Microsoft RPC interfaces
GNU General Public License v3.0
895 stars 247 forks source link

RpcDecompiler/internalComplexTypesArrays.cpp getArrayMemorySize, twice assigned value in the switch #23

Closed hfiref0x closed 5 years ago

hfiref0x commented 5 years ago

RpcDecompiler/internalComplexTypesArrays.cpp https://github.com/silverf0x/RpcView/blob/c108da277be48accb3c6aaeb4af752a2028069bf/RpcDecompiler/internalComplexTypesArrays.cpp#L1104

There is a twice assigned value in the switch. See arraySize.

       case FC_LGFARRAY:
    case FC_LGVARRAY:

        RPC_GET_PROCESS_DATA(pType, &longArray, sizeof(LGFixedSizedArrayHeader_t));
        arraySize = longArray.totalSize;

    default:
        arraySize = POINTER_SIZE;
        break;

Split from #17