Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e37e875 authored by Alex Sakhartchouk's avatar Alex Sakhartchouk
Browse files

Fixing potential buffer overrun errors.

Change-Id: I77c43f0dd3a5d5a54465ff5d562f8e2b4d7fa3c3
parent 358af100
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -145,6 +145,10 @@ uint32_t Type::getLODOffset(uint32_t lod, uint32_t x, uint32_t y, uint32_t z) co

void Type::makeGLComponents()
{
    if(getElement()->getFieldCount() >= RS_MAX_ATTRIBS) {
        return;
    }

    uint32_t userNum = 0;

    for (uint32_t ct=0; ct < getElement()->getFieldCount(); ct++) {