webkitgtk-2.49.1-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:219: error[uninitvar]: Uninitialized variable: newT
#  217|           if (this->capacity() > fSize) SK_LIKELY {
#  218|               // Copy over the element directly.
#  219|->             newT = new (fData + fSize) T(t);
#  220|           } else {
#  221|               newT = this->growAndConstructAtEnd(t);

Error: CPPCHECK_WARNING (CWE-476): [#def2]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:225: error[nullPointer]: Null pointer dereference: newT
#  223|   
#  224|           this->changeSize(fSize + 1);
#  225|->         return *newT;
#  226|       }
#  227|   

Error: CPPCHECK_WARNING (CWE-456): [#def3]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:225: error[uninitdata]: Memory is allocated but not initialized: newT
#  223|   
#  224|           this->changeSize(fSize + 1);
#  225|->         return *newT;
#  226|       }
#  227|   

Error: CPPCHECK_WARNING (CWE-457): [#def4]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:236: error[uninitvar]: Uninitialized variable: newT
#  234|           if (this->capacity() > fSize) SK_LIKELY {
#  235|               // Move over the element directly.
#  236|->             newT = new (fData + fSize) T(std::move(t));
#  237|           } else {
#  238|               newT = this->growAndConstructAtEnd(std::move(t));

Error: CPPCHECK_WARNING (CWE-476): [#def5]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:242: error[nullPointer]: Null pointer dereference: newT
#  240|   
#  241|           this->changeSize(fSize + 1);
#  242|->         return *newT;
#  243|       }
#  244|   

Error: CPPCHECK_WARNING (CWE-456): [#def6]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:242: error[uninitdata]: Memory is allocated but not initialized: newT
#  240|   
#  241|           this->changeSize(fSize + 1);
#  242|->         return *newT;
#  243|       }
#  244|   

Error: CPPCHECK_WARNING (CWE-457): [#def7]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:253: error[uninitvar]: Uninitialized variable: newT
#  251|           if (this->capacity() > fSize) SK_LIKELY {
#  252|               // Emplace the new element in directly.
#  253|->             newT = new (fData + fSize) T(std::forward<Args>(args)...);
#  254|           } else {
#  255|               newT = this->growAndConstructAtEnd(std::forward<Args>(args)...);

Error: CPPCHECK_WARNING (CWE-476): [#def8]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:259: error[nullPointer]: Null pointer dereference: newT
#  257|   
#  258|           this->changeSize(fSize + 1);
#  259|->         return *newT;
#  260|       }
#  261|   

Error: CPPCHECK_WARNING (CWE-456): [#def9]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:259: error[uninitdata]: Memory is allocated but not initialized: newT
#  257|   
#  258|           this->changeSize(fSize + 1);
#  259|->         return *newT;
#  260|       }
#  261|   

Error: CPPCHECK_WARNING (CWE-686): [#def10]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:667: error[memsetClass]: Using 'memcpy' on class that contains a 'std::atomic'.
#  665|       void move(int dst, int src) {
#  666|           if constexpr (MEM_MOVE) {
#  667|->             memcpy(static_cast<void*>(&fData[dst]),
#  668|                      static_cast<const void*>(&fData[src]),
#  669|                      sizeof(T));

Error: CPPCHECK_WARNING (CWE-686): [#def11]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:667: error[memsetClass]: Using 'memcpy' on class that contains a 'std::unique_ptr'.
#  665|       void move(int dst, int src) {
#  666|           if constexpr (MEM_MOVE) {
#  667|->             memcpy(static_cast<void*>(&fData[dst]),
#  668|                      static_cast<const void*>(&fData[src]),
#  669|                      sizeof(T));

Error: CPPCHECK_WARNING (CWE-686): [#def12]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:667: error[memsetClass]: Using 'memcpy' on struct that contains a 'std::string_view'.
#  665|       void move(int dst, int src) {
#  666|           if constexpr (MEM_MOVE) {
#  667|->             memcpy(static_cast<void*>(&fData[dst]),
#  668|                      static_cast<const void*>(&fData[src]),
#  669|                      sizeof(T));

Error: CPPCHECK_WARNING (CWE-686): [#def13]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTArray.h:667: error[memsetClass]: Using 'memcpy' on struct that contains a 'std::unique_ptr'.
#  665|       void move(int dst, int src) {
#  666|           if constexpr (MEM_MOVE) {
#  667|->             memcpy(static_cast<void*>(&fData[dst]),
#  668|                      static_cast<const void*>(&fData[src]),
#  669|                      sizeof(T));

Error: CPPCHECK_WARNING (CWE-686): [#def14]
webkitgtk-2.49.1/Source/ThirdParty/skia/include/private/base/SkTemplates.h:410: error[memsetClass]: Using 'memcpy' on struct that contains a 'std::byte'.
#  408|               if (fPtr == fTStorage) {
#  409|                   fPtr = (T*)sk_malloc_throw(count, sizeof(T));
#  410|->                 memcpy((void*)fPtr, fTStorage, kCount * sizeof(T));
#  411|               } else {
#  412|                   fPtr = (T*)sk_realloc_throw(fPtr, count, sizeof(T));

Error: CPPCHECK_WARNING (CWE-190): [#def15]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/base/SkEndian.h:64: error[integerOverflow]: Signed integer overflow for expression '(0x00010000&0xFF)<<24'.
#   62|   
#   63|   template<uint32_t N> struct SkTEndianSwap32 {
#   64|->     static const uint32_t value = ((N & 0xFF) << 24) |
#   65|                                     ((N & 0xFF00) << 8) |
#   66|                                     ((N & 0xFF0000) >> 8) |

Error: CPPCHECK_WARNING (CWE-457): [#def16]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/base/SkTBlockList.h:118: error[legacyUninitvar]: Uninitialized variable: avail
#  116|        */
#  117|       void reserve(int n) {
#  118|->         int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T);
#  119|           if (n > avail) {
#  120|               int reserved = n - avail;

Error: CPPCHECK_WARNING (CWE-457): [#def17]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/base/SkTBlockList.h:326: error[legacyUninitvar]: Uninitialized variable: avail
#  324|           int headEnd = Last(headBlock) + sizeof(T); // exclusive
#  325|           headItemCount = (headEnd - headStart) / sizeof(T);
#  326|->         int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T);
#  327|           if (headItemCount > avail) {
#  328|               // Make sure there is extra room for the items beyond what's already avail. Use the

Error: CPPCHECK_WARNING (CWE-457): [#def18]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkDrawShadowInfo.cpp:67: warning[uninitvar]: Uninitialized variables: pts3D.fX, pts3D.fY, pts3D.fZ
#   65|           // project from light through corners to z=0 plane
#   66|           for (int i = 0; i < 4; ++i) {
#   67|->             SkScalar dz = lightPos.fZ - pts3D[i].fZ;
#   68|               // light shouldn't be below or at a corner's z-location
#   69|               if (dz <= SK_ScalarNearlyZero) {

Error: CPPCHECK_WARNING (CWE-562): [#def19]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkGlyph.cpp:547: error[returnDanglingLifetime]: Returning object that points to local variable 'left' that will be invalid when returning.
#  545|       }
#  546|   
#  547|->     return std::tie(left, right);
#  548|   }
#  549|   

Error: CPPCHECK_WARNING (CWE-562): [#def20]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkGlyph.cpp:547: error[returnDanglingLifetime]: Returning object that points to local variable 'right' that will be invalid when returning.
#  545|       }
#  546|   
#  547|->     return std::tie(left, right);
#  548|   }
#  549|   

Error: CPPCHECK_WARNING (CWE-457): [#def21]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkM44.cpp:137: error[uninitvar]: Uninitialized variables: v.y, v.z, v.w
#  135|       SkV4 v;
#  136|       (c0*x + (c1*y + (c2*z + c3*w))).store(&v.x);
#  137|->     return v;
#  138|   }
#  139|   

Error: CPPCHECK_WARNING (CWE-476): [#def22]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkMaskGamma.h:260: error[ctunullpointer]: Null pointer dereference: lut
#  258|   }
#  259|   template<> /*static*/ inline U8CPU sk_apply_lut_if<true>(U8CPU component, const uint8_t* lut) {
#  260|->     return lut[component];
#  261|   }
#  262|   ///@}

Error: CPPCHECK_WARNING (CWE-457): [#def23]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkMatrix.cpp:236: error[uninitvar]: Uninitialized variables: vec.fX, vec.fY
#  234|       vec[1].set(sx, my);
#  235|   
#  236|->     return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol));
#  237|   }
#  238|   

Error: CPPCHECK_WARNING (CWE-786): [#def24]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkRegion.cpp:87: error[negativeIndex]: Array 'runs[0]' accessed at index -1, which is out of bounds.
#   85|    */
#   86|   static SkRegionPriv::RunType* skip_intervals(const SkRegionPriv::RunType runs[]) {
#   87|->     int intervals = runs[-1];
#   88|   #ifdef SK_DEBUG
#   89|       if (intervals > 0) {

Error: CPPCHECK_WARNING (CWE-823): [#def25]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/core/SkStroke.cpp:650: error[arrayIndexOutOfBounds]: Array 'quad[3]' accessed at index 3, which is out of bounds.
#  648|       const float kCurvatureSlop = 0.000005f;  // this multiplier is pulled out of the air
#  649|       SkScalar lineSlop =  ptMax * ptMax * kCurvatureSlop;
#  650|->     return pt_to_line(quad[mid], quad[outer1], quad[outer2]) <= lineSlop;
#  651|   }
#  652|   

Error: CPPCHECK_WARNING (CWE-457): [#def26]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/effects/imagefilters/SkBlendImageFilter.cpp:215: warning[uninitvar]: Uninitialized variables: k.x, k.y, k.z, k.w
#  213|               SkV4 k;
#  214|               for (int i = 0; i < 4; ++i) {
#  215|->                 k[i] = buffer.readScalar();
#  216|               }
#  217|               coefficients = k;

Error: CPPCHECK_WARNING (CWE-909): [#def27]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/effects/imagefilters/SkBlendImageFilter.cpp:217: error[uninitStructMember]: Uninitialized struct member: k.w
#  215|                   k[i] = buffer.readScalar();
#  216|               }
#  217|->             coefficients = k;
#  218|               enforcePremul = buffer.readBool();
#  219|               blender = SkBlenders::Arithmetic(k.x, k.y, k.z, k.w, enforcePremul);

Error: CPPCHECK_WARNING (CWE-909): [#def28]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/effects/imagefilters/SkBlendImageFilter.cpp:217: error[uninitStructMember]: Uninitialized struct member: k.x
#  215|                   k[i] = buffer.readScalar();
#  216|               }
#  217|->             coefficients = k;
#  218|               enforcePremul = buffer.readBool();
#  219|               blender = SkBlenders::Arithmetic(k.x, k.y, k.z, k.w, enforcePremul);

Error: CPPCHECK_WARNING (CWE-909): [#def29]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/effects/imagefilters/SkBlendImageFilter.cpp:217: error[uninitStructMember]: Uninitialized struct member: k.y
#  215|                   k[i] = buffer.readScalar();
#  216|               }
#  217|->             coefficients = k;
#  218|               enforcePremul = buffer.readBool();
#  219|               blender = SkBlenders::Arithmetic(k.x, k.y, k.z, k.w, enforcePremul);

Error: CPPCHECK_WARNING (CWE-909): [#def30]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/effects/imagefilters/SkBlendImageFilter.cpp:217: error[uninitStructMember]: Uninitialized struct member: k.z
#  215|                   k[i] = buffer.readScalar();
#  216|               }
#  217|->             coefficients = k;
#  218|               enforcePremul = buffer.readBool();
#  219|               blender = SkBlenders::Arithmetic(k.x, k.y, k.z, k.w, enforcePremul);

Error: CPPCHECK_WARNING (CWE-457): [#def31]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/BufferWriter.h:154: warning[uninitvar]: Uninitialized variables: value.fX, value.fY
#  152|       template <typename T>
#  153|       static Conditional<T> If(bool condition, const T& value) {
#  154|->         return {condition, value};
#  155|       }
#  156|   

Error: CPPCHECK_WARNING (CWE-562): [#def32]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrResourceCache.cpp:636: error[danglingTemporaryLifetime]: Using pointer that is a temporary.
#  634|       GrGpuResource* tail = *(fNonpurgeableResources.end() - 1);
#  635|       SkASSERT(fNonpurgeableResources[*index] == resource);
#  636|->     fNonpurgeableResources[*index] = tail;
#  637|       *tail->cacheAccess().accessCacheIndex() = *index;
#  638|       fNonpurgeableResources.pop_back();

Error: CPPCHECK_WARNING (CWE-562): [#def33]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrResourceCache.h:358: error[returnDanglingLifetime]: Returning pointer that will be invalid when returning.
#  356|   
#  357|       static int* AccessResourceIndex(GrGpuResource* const& res) {
#  358|->         return res->cacheAccess().accessCacheIndex();
#  359|       }
#  360|   

Error: CPPCHECK_WARNING (CWE-562): [#def34]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrSWMaskHelper.cpp:47: error[danglingLifetime]: Non-local variable 'fDraw.fCTM' will use pointer to local variable 'translatedMatrix'.
#   45|       SkMatrix translatedMatrix = matrix;
#   46|       translatedMatrix.postTranslate(fTranslate.fX, fTranslate.fY);
#   47|->     fDraw.fCTM = &translatedMatrix;
#   48|   
#   49|       fDraw.drawRect(rect, get_paint(aa, alpha));

Error: CPPCHECK_WARNING (CWE-562): [#def35]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrSWMaskHelper.cpp:56: error[danglingLifetime]: Non-local variable 'fDraw.fCTM' will use pointer to local variable 'translatedMatrix'.
#   54|       SkMatrix translatedMatrix = matrix;
#   55|       translatedMatrix.postTranslate(fTranslate.fX, fTranslate.fY);
#   56|->     fDraw.fCTM = &translatedMatrix;
#   57|   
#   58|       fDraw.drawRRect(rrect, get_paint(aa, alpha));

Error: CPPCHECK_WARNING (CWE-562): [#def36]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrSWMaskHelper.cpp:72: error[danglingLifetime]: Non-local variable 'fDraw.fCTM' will use pointer to local variable 'translatedMatrix'.
#   70|       SkMatrix translatedMatrix = matrix;
#   71|       translatedMatrix.postTranslate(fTranslate.fX, fTranslate.fY);
#   72|->     fDraw.fCTM = &translatedMatrix;
#   73|   
#   74|       SkPath path;

Error: CPPCHECK_WARNING (CWE-562): [#def37]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrSWMaskHelper.cpp:90: error[danglingLifetime]: Non-local variable 'fDraw.fCTM' will use pointer to local variable 'translatedMatrix'.
#   88|       SkMatrix translatedMatrix = matrix;
#   89|       translatedMatrix.postTranslate(fTranslate.fX, fTranslate.fY);
#   90|->     fDraw.fCTM = &translatedMatrix;
#   91|   
#   92|       if (shape.inverted()) {

Error: CPPCHECK_WARNING (CWE-457): [#def38]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrYUVATextureProxies.cpp:58: warning[uninitvar]: Uninitialized variable: textureChannelMasks
#   56|           textureChannelMasks[i] = proxies[i]->backendFormat().channelMask();
#   57|       }
#   58|->     fYUVALocations = yuvaInfo.toYUVALocations(textureChannelMasks);
#   59|       if (fYUVALocations[0].fPlane < 0) {
#   60|           *this = {};

Error: CPPCHECK_WARNING (CWE-457): [#def39]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/GrYUVATextureProxies.cpp:106: warning[uninitvar]: Uninitialized variable: pixmapChannelMasks
#  104|       }
#  105|       // Initial locations refer to the CPU pixmap channels.
#  106|->     fYUVALocations = yuvaInfo.toYUVALocations(pixmapChannelMasks);
#  107|       if (fYUVALocations[0].fPlane < 0) {
#  108|           *this = {};

Error: CPPCHECK_WARNING (CWE-457): [#def40]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/geometry/GrAATriangulator.cpp:551: warning[uninitvar]: Uninitialized variable: innerVertices.fTail
#  549|           prevNormal = normal;
#  550|       }
#  551|->     if (!inversion(innerVertices.fTail, innerVertices.fHead, prevEdge, c)) {
#  552|           innerInversion = false;
#  553|       }

Error: CPPCHECK_WARNING (CWE-457): [#def41]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/geometry/GrAATriangulator.cpp:554: warning[uninitvar]: Uninitialized variable: outerVertices.fTail
#  552|           innerInversion = false;
#  553|       }
#  554|->     if (!inversion(outerVertices.fTail, outerVertices.fHead, prevEdge, c)) {
#  555|           outerInversion = false;
#  556|       }

Error: CPPCHECK_WARNING (CWE-823): [#def42]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/gpu/ganesh/ops/TextureOp.cpp:267: error[arrayIndexOutOfBounds]: Array 'fViewCountPairs[1]' accessed at index 1, which is out of bounds.
#  265|       ~TextureOpImpl() override {
#  266|           for (unsigned p = 1; p < fMetadata.fProxyCount; ++p) {
#  267|->             fViewCountPairs[p].~ViewCountPair();
#  268|           }
#  269|       }

Error: CPPCHECK_WARNING (CWE-457): [#def43]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkDCubicLineIntersection.cpp:136: warning[uninitvar]: Uninitialized variable: c.gPrecisionUnit
#  134|           SkDEBUGCODE(c.fDebugGlobalState = fIntersections->globalState());
#  135|           for (int n = 0; n < 4; ++n) {
#  136|->             c[n].fX = (fCubic[n].fY - fLine[0].fY) * adj - (fCubic[n].fX - fLine[0].fX) * opp;
#  137|           }
#  138|           double A, B, C, D;

Error: CPPCHECK_WARNING (CWE-457): [#def44]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkOpAngle.cpp:365: warning[uninitvar]: Uninitialized variable: *tweep
#  363|           tweep = &scratch[1];
#  364|       }
#  365|->     double s0xt0 = sweep->crossCheck(*tweep);
#  366|       if (tangentsDiverge(rh, s0xt0)) {
#  367|           return s0xt0 < 0;

Error: CPPCHECK_WARNING (CWE-457): [#def45]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkOpAngle.cpp:656: error[uninitvar]: Uninitialized variable: rayEnd
#  654|       SkPath::Verb verb = segment->verb();
#  655|       SkDLine rayEnd;
#  656|->     rayEnd[0].set(this->fEnd->pt());
#  657|       rayEnd[1] = rayEnd[0];
#  658|       SkDVector slopeAtEnd = (*CurveDSlopeAtT[verb])(segment->pts(), segment->weight(),

Error: CPPCHECK_WARNING (CWE-457): [#def46]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkOpAngle.cpp:881: error[uninitvar]: Uninitialized variable: rayMid
#  879|       dStartPt.set(startPt);
#  880|       SkDLine rayMid;
#  881|->     rayMid[0].fX = (startPt.fX + endPt.fX) / 2;
#  882|       rayMid[0].fY = (startPt.fY + endPt.fY) / 2;
#  883|       rayMid[1].fX = rayMid[0].fX + (endPt.fY - startPt.fY);

Error: CPPCHECK_WARNING (CWE-457): [#def47]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkOpAngle.cpp:1005: error[uninitvar]: Uninitialized variable: lineHalf
# 1003|           fPart.fCurve[1] = fPart.fCurve[SkPathOpsVerbToPoints(verb)];
# 1004|           fOriginalCurvePart[1] = fPart.fCurve[1];
# 1005|->         lineHalf[0].set(fPart.fCurve[0].asSkPoint());
# 1006|           lineHalf[1].set(fPart.fCurve[1].asSkPoint());
# 1007|           fTangentHalf.lineEndPoints(lineHalf);

Error: CPPCHECK_WARNING (CWE-457): [#def48]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkOpAngle.cpp:1015: error[uninitvar]: Uninitialized variable: lineHalf
# 1013|           const SkPoint& cP1 = pts[fStart->t() < fEnd->t()];
# 1014|           SkDLine lineHalf;
# 1015|->         lineHalf[0].set(fStart->pt());
# 1016|           lineHalf[1].set(cP1);
# 1017|           fTangentHalf.lineEndPoints(lineHalf);

Error: CPPCHECK_WARNING (CWE-457): [#def49]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkOpSegment.cpp:1630: warning[uninitvar]: Uninitialized variable: edge->fCubic
# 1628|       const SkOpPtT& endPtT = *end->ptT();
# 1629|       SkDEBUGCODE(edge->fVerb = fVerb);
# 1630|->     edge->fCubic[0].set(startPtT.fPt);
# 1631|       int points = SkPathOpsVerbToPoints(fVerb);
# 1632|       edge->fCubic[points].set(endPtT.fPt);

Error: CPPCHECK_WARNING (CWE-457): [#def50]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkPathOpsCubic.cpp:674: error[uninitvar]: Uninitialized variable: dst.gPrecisionUnit
#  672|       }
#  673|       SkDCubic dst;
#  674|->     double ax = dst[0].fX = interp_cubic_coords(&fPts[0].fX, t1);
#  675|       double ay = dst[0].fY = interp_cubic_coords(&fPts[0].fY, t1);
#  676|       double ex = interp_cubic_coords(&fPts[0].fX, (t1*2+t2)/3);

Error: CPPCHECK_WARNING (CWE-457): [#def51]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkPathOpsDebug.cpp:697: error[uninitvar]: Uninitialized variable: cubic.gPrecisionUnit
#  695|   SkDCubic SkDQuad::debugToCubic() const {
#  696|       SkDCubic cubic;
#  697|->     cubic[0] = fPts[0];
#  698|       cubic[2] = fPts[1];
#  699|       cubic[3] = fPts[2];

Error: CPPCHECK_WARNING (CWE-909): [#def52]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkPathOpsWinding.cpp:200: error[uninitStructMember]: Uninitialized struct member: slope.fX
#  198|           newHit->fNext = *hits;
#  199|           newHit->fPt = pt;
#  200|->         newHit->fSlope = slope;
#  201|           newHit->fSpan = span;
#  202|           newHit->fT = t;

Error: CPPCHECK_WARNING (CWE-909): [#def53]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkPathOpsWinding.cpp:200: error[uninitStructMember]: Uninitialized struct member: slope.fY
#  198|           newHit->fNext = *hits;
#  199|           newHit->fPt = pt;
#  200|->         newHit->fSlope = slope;
#  201|           newHit->fSpan = span;
#  202|           newHit->fT = t;

Error: CPPCHECK_WARNING (CWE-457): [#def54]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pathops/SkPathOpsWinding.cpp:200: warning[uninitvar]: Uninitialized variables: slope.fX, slope.fY
#  198|           newHit->fNext = *hits;
#  199|           newHit->fPt = pt;
#  200|->         newHit->fSlope = slope;
#  201|           newHit->fSpan = span;
#  202|           newHit->fT = t;

Error: CPPCHECK_WARNING (CWE-457): [#def55]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pdf/SkDeflate.cpp:63: error[uninitvar]: Uninitialized variable: outBuffer
#   61|           SkASSERT(!zStream->msg);
#   62|   
#   63|->         out->write(outBuffer, sizeof(outBuffer) - zStream->avail_out);
#   64|       } while (zStream->avail_in || !zStream->avail_out);
#   65|       SkASSERT(flush == Z_FINISH

Error: CPPCHECK_WARNING (CWE-457): [#def56]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pdf/SkPDFBitmap.cpp:156: warning[uninitvar]: Uninitialized variable: byteBuffer
#  154|               }
#  155|           }
#  156|->         stream->write(byteBuffer, dst - byteBuffer);
#  157|       }
#  158|       if (deflateWStream) {

Error: CPPCHECK_WARNING (CWE-457): [#def57]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/pdf/SkPDFBitmap.cpp:257: warning[uninitvar]: Uninitialized variable: byteBuffer
#  255|                   }
#  256|               }
#  257|->             stream->write(byteBuffer, dst - byteBuffer);
#  258|       }
#  259|       if (deflateWStream) {

Error: CPPCHECK_WARNING (CWE-562): [#def58]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/ports/SkFontHost_FreeType.cpp:677: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  675|               char glyphName[128];  // PS limit for names is 127 bytes.
#  676|               FT_Get_Glyph_Name(face, gID, glyphName, 128);
#  677|->             dstArray[gID] = glyphName;
#  678|           }
#  679|       }

Error: CPPCHECK_WARNING (CWE-457): [#def59]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/shaders/gradients/SkGradientBaseShader.cpp:734: warning[uninitvar]: Uninitialized variables: f.fR, f.fG, f.fB, f.fA
#  732|       for (int i = 0; i < 3; ++i) {
#  733|           float v = xyz[i] / D50[i];
#  734|->         f[i] = (v > e) ? std::cbrtf(v) : (k * v + 16) / 116;
#  735|       }
#  736|   

Error: CPPCHECK_WARNING (CWE-562): [#def60]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:77: error[danglingTempReference]: Using reference to dangling temporary.
#   75|       if (!loopInitializer) {
#   76|           Position pos = positions.initPosition.valid() ? positions.initPosition : loopPos;
#   77|->         errors.error(pos, "missing init declaration");
#   78|           return nullptr;
#   79|       }

Error: CPPCHECK_WARNING (CWE-562): [#def61]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:81: error[danglingTempReference]: Using reference to dangling temporary.
#   79|       }
#   80|       if (!loopInitializer->is<VarDeclaration>()) {
#   81|->         errors.error(loopInitializer->fPosition, "invalid init declaration");
#   82|           return nullptr;
#   83|       }

Error: CPPCHECK_WARNING (CWE-562): [#def62]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:86: error[danglingTempReference]: Using reference to dangling temporary.
#   84|       const VarDeclaration& initDecl = loopInitializer->as<VarDeclaration>();
#   85|       if (!initDecl.baseType().isNumber()) {
#   86|->         errors.error(loopInitializer->fPosition, "invalid type for loop index");
#   87|           return nullptr;
#   88|       }

Error: CPPCHECK_WARNING (CWE-562): [#def63]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:90: error[danglingTempReference]: Using reference to dangling temporary.
#   88|       }
#   89|       if (initDecl.arraySize() != 0) {
#   90|->         errors.error(loopInitializer->fPosition, "invalid type for loop index");
#   91|           return nullptr;
#   92|       }

Error: CPPCHECK_WARNING (CWE-562): [#def64]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:94: error[danglingTempReference]: Using reference to dangling temporary.
#   92|       }
#   93|       if (!initDecl.value()) {
#   94|->         errors.error(loopInitializer->fPosition, "missing loop index initializer");
#   95|           return nullptr;
#   96|       }

Error: CPPCHECK_WARNING (CWE-562): [#def65]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:98: error[danglingTempReference]: Using reference to dangling temporary.
#   96|       }
#   97|       if (!ConstantFolder::GetConstantValue(*initDecl.value(), &loopInfo->fStart)) {
#   98|->         errors.error(loopInitializer->fPosition,
#   99|                        "loop index initializer must be a constant expression");
#  100|           return nullptr;

Error: CPPCHECK_WARNING (CWE-562): [#def66]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:115: error[danglingTempReference]: Using reference to dangling temporary.
#  113|       if (!loopTest || !*loopTest) {
#  114|           Position pos = positions.conditionPosition.valid() ? positions.conditionPosition : loopPos;
#  115|->         errors.error(pos, "missing condition");
#  116|           return nullptr;
#  117|       }

Error: CPPCHECK_WARNING (CWE-562): [#def67]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:119: error[danglingTempReference]: Using reference to dangling temporary.
#  117|       }
#  118|       if (!loopTest->get()->is<BinaryExpression>()) {
#  119|->         errors.error(loopTest->get()->fPosition, "invalid condition");
#  120|           return nullptr;
#  121|       }

Error: CPPCHECK_WARNING (CWE-562): [#def68]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:124: error[danglingTempReference]: Using reference to dangling temporary.
#  122|       const BinaryExpression* cond = &loopTest->get()->as<BinaryExpression>();
#  123|       if (!is_loop_index(cond->left())) {
#  124|->         errors.error(cond->fPosition, "expected loop index on left hand side of condition");
#  125|           return nullptr;
#  126|       }

Error: CPPCHECK_WARNING (CWE-562): [#def69]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:137: error[danglingTempReference]: Using reference to dangling temporary.
#  135|               break;
#  136|           default:
#  137|->             errors.error(cond->fPosition, "invalid relational operator");
#  138|               return nullptr;
#  139|       }

Error: CPPCHECK_WARNING (CWE-562): [#def70]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:142: error[danglingTempReference]: Using reference to dangling temporary.
#  140|       double loopEnd = 0;
#  141|       if (!ConstantFolder::GetConstantValue(*cond->right(), &loopEnd)) {
#  142|->         errors.error(cond->fPosition, "loop index must be compared with a constant expression");
#  143|           return nullptr;
#  144|       }

Error: CPPCHECK_WARNING (CWE-562): [#def71]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:157: error[danglingTempReference]: Using reference to dangling temporary.
#  155|       if (!loopNext) {
#  156|           Position pos = positions.nextPosition.valid() ? positions.nextPosition : loopPos;
#  157|->         errors.error(pos, "missing loop expression");
#  158|           return nullptr;
#  159|       }

Error: CPPCHECK_WARNING (CWE-562): [#def72]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:164: error[danglingTempReference]: Using reference to dangling temporary.
#  162|               const BinaryExpression& next = loopNext->as<BinaryExpression>();
#  163|               if (!is_loop_index(next.left())) {
#  164|->                 errors.error(loopNext->fPosition, "expected loop index in loop expression");
#  165|                   return nullptr;
#  166|               }

Error: CPPCHECK_WARNING (CWE-562): [#def73]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:168: error[danglingTempReference]: Using reference to dangling temporary.
#  166|               }
#  167|               if (!ConstantFolder::GetConstantValue(*next.right(), &loopInfo->fDelta)) {
#  168|->                 errors.error(loopNext->fPosition,
#  169|                                "loop index must be modified by a constant expression");
#  170|                   return nullptr;

Error: CPPCHECK_WARNING (CWE-562): [#def74]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:176: error[danglingTempReference]: Using reference to dangling temporary.
#  174|                   case Operator::Kind::MINUSEQ: loopInfo->fDelta = -loopInfo->fDelta; break;
#  175|                   default:
#  176|->                     errors.error(loopNext->fPosition, "invalid operator in loop expression");
#  177|                       return nullptr;
#  178|               }

Error: CPPCHECK_WARNING (CWE-562): [#def75]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:184: error[danglingTempReference]: Using reference to dangling temporary.
#  182|               const PrefixExpression& next = loopNext->as<PrefixExpression>();
#  183|               if (!is_loop_index(next.operand())) {
#  184|->                 errors.error(loopNext->fPosition, "expected loop index in loop expression");
#  185|                   return nullptr;
#  186|               }

Error: CPPCHECK_WARNING (CWE-562): [#def76]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:191: error[danglingTempReference]: Using reference to dangling temporary.
#  189|                   case Operator::Kind::MINUSMINUS: loopInfo->fDelta = -1; break;
#  190|                   default:
#  191|->                     errors.error(loopNext->fPosition, "invalid operator in loop expression");
#  192|                       return nullptr;
#  193|               }

Error: CPPCHECK_WARNING (CWE-562): [#def77]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:199: error[danglingTempReference]: Using reference to dangling temporary.
#  197|               const PostfixExpression& next = loopNext->as<PostfixExpression>();
#  198|               if (!is_loop_index(next.operand())) {
#  199|->                 errors.error(loopNext->fPosition, "expected loop index in loop expression");
#  200|                   return nullptr;
#  201|               }

Error: CPPCHECK_WARNING (CWE-562): [#def78]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:206: error[danglingTempReference]: Using reference to dangling temporary.
#  204|                   case Operator::Kind::MINUSMINUS: loopInfo->fDelta = -1; break;
#  205|                   default:
#  206|->                     errors.error(loopNext->fPosition, "invalid operator in loop expression");
#  207|                       return nullptr;
#  208|               }

Error: CPPCHECK_WARNING (CWE-562): [#def79]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:212: error[danglingTempReference]: Using reference to dangling temporary.
#  210|           }
#  211|           default:
#  212|->             errors.error(loopNext->fPosition, "invalid loop expression");
#  213|               return nullptr;
#  214|       }

Error: CPPCHECK_WARNING (CWE-562): [#def80]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:221: error[danglingTempReference]: Using reference to dangling temporary.
#  219|       //
#  220|       if (Analysis::StatementWritesToVariable(*loopStatement, *initDecl.var())) {
#  221|->         errors.error(loopStatement->fPosition,
#  222|                        "loop index must not be modified within body of the loop");
#  223|           return nullptr;

Error: CPPCHECK_WARNING (CWE-562): [#def81]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp:293: error[danglingTempReference]: Using reference to dangling temporary.
#  291|       SkASSERT(loopInfo->fCount >= 0);
#  292|       if (loopInfo->fCount >= kLoopTerminationLimit) {
#  293|->         errors.error(loopPos, "loop must guarantee termination in fewer iterations");
#  294|           return nullptr;
#  295|       }

Error: CPPCHECK_WARNING (CWE-562): [#def82]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/codegen/SkSLPipelineStageCodeGenerator.cpp:397: error[returnDanglingLifetime]: Returning object that points to local variable 'specializedName' that will be invalid when returning.
#  395|       std::string mangledName = fCallbacks->getMangledName(specializedName.c_str());
#  396|       fFunctionNames.set(key, mangledName);
#  397|->     return mangledName;
#  398|   }
#  399|   

Error: CPPCHECK_WARNING (CWE-562): [#def83]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/codegen/SkSLPipelineStageCodeGenerator.cpp:512: error[danglingTemporaryLifetime]: Using object that is a temporary.
#  510|           std::string mangledName = fCallbacks->getMangledName(std::string(var.name()).c_str());
#  511|           std::string declaration = this->modifierString(var.modifierFlags()) +
#  512|->                                   this->typedVariable(var.type(), mangledName);
#  513|           if (decl.value()) {
#  514|               AutoOutputBuffer outputToBuffer(this);

Error: CPPCHECK_WARNING (CWE-562): [#def84]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/codegen/SkSLPipelineStageCodeGenerator.cpp:528: error[danglingTemporaryLifetime]: Using object that is a temporary.
#  526|       const Type& type = s.type();
#  527|       std::string mangledName = fCallbacks->getMangledName(type.displayName().c_str());
#  528|->     std::string definition = "struct " + mangledName + " {\n";
#  529|       for (const auto& f : type.fields()) {
#  530|           definition += this->typedVariable(*f.fType, f.fName) + ";\n";

Error: CPPCHECK_WARNING (CWE-664): [#def85]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/codegen/SkSLRasterPipelineCodeGenerator.cpp:2108: error[mismatchingContainers]: Iterators of different containers 'stmt' and 'cases.back()' are used together.
# 2106|           if (sc.isDefault()) {
# 2107|               foundDefaultCase = true;
# 2108|->             if (stmt.get() != cases.back().get()) {
# 2109|                   // We only support a default case when it is the very last case. If that changes,
# 2110|                   // this logic will need to be updated.

Error: CPPCHECK_WARNING (CWE-562): [#def86]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:124: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  122|           T* ptr = symbol.get();
#  123|           this->addWithoutOwnership(context, this->takeOwnershipOfSymbol(std::move(symbol)));
#  124|->         return ptr;
#  125|       }
#  126|   

Error: CPPCHECK_WARNING (CWE-562): [#def87]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:135: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  133|           T* ptr = symbol.get();
#  134|           this->addWithoutOwnershipOrDie(this->takeOwnershipOfSymbol(std::move(symbol)));
#  135|->         return ptr;
#  136|       }
#  137|   

Error: CPPCHECK_WARNING (CWE-562): [#def88]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:152: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  150|           T* ptr = symbol.get();
#  151|           this->injectWithoutOwnership(this->takeOwnershipOfSymbol(std::move(symbol)));
#  152|->         return ptr;
#  153|       }
#  154|   

Error: CPPCHECK_WARNING (CWE-562): [#def89]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:162: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  160|           T* ptr = symbol.get();
#  161|           fOwnedSymbols.push_back(std::move(symbol));
#  162|->         return ptr;
#  163|       }
#  164|   

Error: CPPCHECK_WARNING (CWE-476): [#def90]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/text/StrikeForGPU.cpp:33: error[nullPointer]: Null pointer dereference: spec
#   31|               std::exchange(std::get<std::unique_ptr<SkStrikeSpec>>(fStrikeOrSpec), nullptr);
#   32|   
#   33|->         fStrikeOrSpec = SkStrikeCache::GlobalStrikeCache()->findOrCreateStrike(*spec);
#   34|       }
#   35|       return std::get<sk_sp<SkStrike>>(fStrikeOrSpec).get();

Error: CPPCHECK_WARNING (CWE-758): [#def91]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/text/gpu/GlyphVector.cpp:109: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
#  107|           // Get all the atlas locations for each glyph.
#  108|           for (Variant& variant : fGlyphs) {
#  109|->             variant.glyph = fTextStrike->getGlyph(variant.packedGlyphID);
#  110|           }
#  111|   

Error: CPPCHECK_WARNING (CWE-562): [#def92]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/text/gpu/SubRunContainer.h:189: error[danglingLifetime]: Non-local variable 'fTail' will use pointer to local variable 'subRun'.
#  187|           SubRunOwner* newTail = &subRun->fNext;
#  188|           *fTail = std::move(subRun);
#  189|->         fTail = newTail;
#  190|       }
#  191|       bool isEmpty() const { return fHead == nullptr; }

Error: CPPCHECK_WARNING (CWE-457): [#def93]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/text/gpu/TextBlob.cpp:149: warning[uninitvar]: Uninitialized variables: key.fUniqueID, key.fCanonicalColor, key.fFrameWidth, key.fMiterLimit, key.fPixelGeometry, key.fBlurRec, key.fScalerContextFlags, key.fHasSomeDirectSubRuns, key.fHasBlur, key.fStyle, key.fJoin
#  147|       }
#  148|   
#  149|->     return {canCache, key};
#  150|   }
#  151|   

Error: CPPCHECK_WARNING (CWE-476): [#def94]
webkitgtk-2.49.1/Source/ThirdParty/skia/src/utils/SkPolyUtils.cpp:1339: warning[nullPointer]: Possible null pointer dereference: prevEdge
# 1337|       // close up the linked list
# 1338|       SkASSERT(prevEdge);
# 1339|->     prevEdge->fNext = &edgeData[0];
# 1340|       edgeData[0].fPrev = prevEdge;
# 1341|   

Error: CPPCHECK_WARNING (CWE-476): [#def95]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  115|     
#  116|     list = calloc (1, sizeof (XdgDirTimeList));
#  117|->   list->checked = XDG_CHECKED_UNCHECKED;
#  118|     list->directory_name = file_name;
#  119|     list->mtime = mtime;

Error: CPPCHECK_WARNING (CWE-476): [#def96]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  116|     list = calloc (1, sizeof (XdgDirTimeList));
#  117|     list->checked = XDG_CHECKED_UNCHECKED;
#  118|->   list->directory_name = file_name;
#  119|     list->mtime = mtime;
#  120|     list->next = dir_time_list;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:118:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  116|     list = calloc (1, sizeof (XdgDirTimeList));
#  117|     list->checked = XDG_CHECKED_UNCHECKED;
#  118|->   list->directory_name = file_name;
#  119|     list->mtime = mtime;
#  120|     list->next = dir_time_list;

Error: CPPCHECK_WARNING (CWE-476): [#def98]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  117|     list->checked = XDG_CHECKED_UNCHECKED;
#  118|     list->directory_name = file_name;
#  119|->   list->mtime = mtime;
#  120|     list->next = dir_time_list;
#  121|     dir_time_list = list;

Error: CPPCHECK_WARNING (CWE-476): [#def99]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  118|     list->directory_name = file_name;
#  119|     list->mtime = mtime;
#  120|->   list->next = dir_time_list;
#  121|     dir_time_list = list;
#  122|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def100]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:146:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘directory’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  144|     assert (directory != NULL);
#  145|   
#  146|->   file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  147|     strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  148|     if (stat (file_name, &st) == 0)

Error: CPPCHECK_WARNING (CWE-476): [#def101]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  145|   
#  146|     file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  147|->   strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  148|     if (stat (file_name, &st) == 0)
#  149|       {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def102]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:147:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  145|   
#  146|     file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  147|->   strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  148|     if (stat (file_name, &st) == 0)
#  149|       {

Error: CPPCHECK_WARNING (CWE-401): [#def103]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:156: error[memleakOnRealloc]: Common realloc mistake: '_caches' nulled but not freed upon failure
#  154|   	  xdg_dir_time_list_add (file_name, st.st_mtime);
#  155|   
#  156|-> 	  _caches = realloc (_caches, sizeof (XdgMimeCache *) * (n_caches + 2));
#  157|   	  _caches[n_caches] = cache;
#  158|             _caches[n_caches + 1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def104]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  165|   
#  166|     file_name = malloc (strlen (directory) + strlen ("/mime/globs2") + 1);
#  167|->   strcpy (file_name, directory); strcat (file_name, "/mime/globs2");
#  168|     if (stat (file_name, &st) == 0)
#  169|       {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def105]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:167:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  165|   
#  166|     file_name = malloc (strlen (directory) + strlen ("/mime/globs2") + 1);
#  167|->   strcpy (file_name, directory); strcat (file_name, "/mime/globs2");
#  168|     if (stat (file_name, &st) == 0)
#  169|       {

Error: CPPCHECK_WARNING (CWE-476): [#def106]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  175|         free (file_name);
#  176|         file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
#  177|->       strcpy (file_name, directory); strcat (file_name, "/mime/globs");
#  178|         if (stat (file_name, &st) == 0)
#  179|           {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def107]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:177:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  175|         free (file_name);
#  176|         file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
#  177|->       strcpy (file_name, directory); strcat (file_name, "/mime/globs");
#  178|         if (stat (file_name, &st) == 0)
#  179|           {

Error: CPPCHECK_WARNING (CWE-476): [#def108]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  188|   
#  189|     file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
#  190|->   strcpy (file_name, directory); strcat (file_name, "/mime/magic");
#  191|     if (stat (file_name, &st) == 0)
#  192|       {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:190:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  188|   
#  189|     file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
#  190|->   strcpy (file_name, directory); strcat (file_name, "/mime/magic");
#  191|     if (stat (file_name, &st) == 0)
#  192|       {

Error: CPPCHECK_WARNING (CWE-476): [#def110]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:202: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  200|   
#  201|     file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
#  202|->   strcpy (file_name, directory); strcat (file_name, "/mime/aliases");
#  203|     _xdg_mime_alias_read_from_file (alias_list, file_name);
#  204|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def111]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:202:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  200|   
#  201|     file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
#  202|->   strcpy (file_name, directory); strcat (file_name, "/mime/aliases");
#  203|     _xdg_mime_alias_read_from_file (alias_list, file_name);
#  204|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def112]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  205|   
#  206|     file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
#  207|->   strcpy (file_name, directory); strcat (file_name, "/mime/subclasses");
#  208|     _xdg_mime_parent_read_from_file (parent_list, file_name);
#  209|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def113]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:207:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  205|   
#  206|     file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
#  207|->   strcpy (file_name, directory); strcat (file_name, "/mime/subclasses");
#  208|     _xdg_mime_parent_read_from_file (parent_list, file_name);
#  209|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def114]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  210|   
#  211|     file_name = malloc (strlen (directory) + strlen ("/mime/icons") + 1);
#  212|->   strcpy (file_name, directory); strcat (file_name, "/mime/icons");
#  213|     _xdg_mime_icon_read_from_file (icon_list, file_name);
#  214|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def115]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:212:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  210|   
#  211|     file_name = malloc (strlen (directory) + strlen ("/mime/icons") + 1);
#  212|->   strcpy (file_name, directory); strcat (file_name, "/mime/icons");
#  213|     _xdg_mime_icon_read_from_file (icon_list, file_name);
#  214|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def116]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  215|   
#  216|     file_name = malloc (strlen (directory) + strlen ("/mime/generic-icons") + 1);
#  217|->   strcpy (file_name, directory); strcat (file_name, "/mime/generic-icons");
#  218|     _xdg_mime_icon_read_from_file (generic_icon_list, file_name);
#  219|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:217:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  215|   
#  216|     file_name = malloc (strlen (directory) + strlen ("/mime/generic-icons") + 1);
#  217|->   strcpy (file_name, directory); strcat (file_name, "/mime/generic-icons");
#  218|     _xdg_mime_icon_read_from_file (generic_icon_list, file_name);
#  219|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def118]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home
#  248|   
#  249|   	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
#  250|-> 	  strcpy (guessed_xdg_home, home);
#  251|   	  strcat (guessed_xdg_home, "/.local/share/");
#  252|   	  stop_processing = (func) (guessed_xdg_home, user_data);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def119]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:250:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘guessed_xdg_home’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:442:1: enter_function: entry to ‘xdg_mime_init’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:458:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  248|   
#  249|   	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
#  250|-> 	  strcpy (guessed_xdg_home, home);
#  251|   	  strcat (guessed_xdg_home, "/.local/share/");
#  252|   	  stop_processing = (func) (guessed_xdg_home, user_data);

Error: CPPCHECK_WARNING (CWE-476): [#def120]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:251: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home
#  249|   	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
#  250|   	  strcpy (guessed_xdg_home, home);
#  251|-> 	  strcat (guessed_xdg_home, "/.local/share/");
#  252|   	  stop_processing = (func) (guessed_xdg_home, user_data);
#  253|   	  free (guessed_xdg_home);

Error: CPPCHECK_WARNING (CWE-476): [#def121]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  286|   	len = end_ptr - ptr + 1;
#  287|         dir = malloc (len + 1);
#  288|->       strncpy (dir, ptr, len);
#  289|         dir[len] = '\0';
#  290|         stop_processing = (func) (dir, user_data);

Error: CPPCHECK_WARNING (CWE-476): [#def122]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:289: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  287|         dir = malloc (len + 1);
#  288|         strncpy (dir, ptr, len);
#  289|->       dir[len] = '\0';
#  290|         stop_processing = (func) (dir, user_data);
#  291|         free (dir);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def123]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:351:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘directory’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:947:1: enter_function: entry to ‘_wk_xdg_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:951:3: call_function: calling ‘xdg_mime_init’ from ‘_wk_xdg_get_simple_globs’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  349|   
#  350|     /* Check the mime.cache file */
#  351|->   file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  352|     strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  353|     invalid = xdg_check_file (file_name, &exists);

Error: CPPCHECK_WARNING (CWE-476): [#def124]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  350|     /* Check the mime.cache file */
#  351|     file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  352|->   strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  353|     invalid = xdg_check_file (file_name, &exists);
#  354|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def125]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:352:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:947:1: enter_function: entry to ‘_wk_xdg_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:951:3: call_function: calling ‘xdg_mime_init’ from ‘_wk_xdg_get_simple_globs’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  350|     /* Check the mime.cache file */
#  351|     file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  352|->   strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  353|     invalid = xdg_check_file (file_name, &exists);
#  354|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def126]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  365|     /* Check the globs file */
#  366|     file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
#  367|->   strcpy (file_name, directory); strcat (file_name, "/mime/globs");
#  368|     invalid = xdg_check_file (file_name, NULL);
#  369|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:367:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:947:1: enter_function: entry to ‘_wk_xdg_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:951:3: call_function: calling ‘xdg_mime_init’ from ‘_wk_xdg_get_simple_globs’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  365|     /* Check the globs file */
#  366|     file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
#  367|->   strcpy (file_name, directory); strcat (file_name, "/mime/globs");
#  368|     invalid = xdg_check_file (file_name, NULL);
#  369|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def128]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  376|     /* Check the magic file */
#  377|     file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
#  378|->   strcpy (file_name, directory); strcat (file_name, "/mime/magic");
#  379|     invalid = xdg_check_file (file_name, NULL);
#  380|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def129]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:378:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:947:1: enter_function: entry to ‘_wk_xdg_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:951:3: call_function: calling ‘xdg_mime_init’ from ‘_wk_xdg_get_simple_globs’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  376|     /* Check the magic file */
#  377|     file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
#  378|->   strcpy (file_name, directory); strcat (file_name, "/mime/magic");
#  379|     invalid = xdg_check_file (file_name, NULL);
#  380|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def130]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:838: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  836|     n = (i + 1) * sizeof (char *);
#  837|     result = (char **) malloc (n);
#  838|->   memcpy (result, parents, n);
#  839|   
#  840|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def131]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:885: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  883|     /* Make a new list element */
#  884|     list_el = calloc (1, sizeof (XdgCallbackList));
#  885|->   list_el->callback_id = callback_id;
#  886|     list_el->callback = callback;
#  887|     list_el->data = data;

Error: CPPCHECK_WARNING (CWE-476): [#def132]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:886: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  884|     list_el = calloc (1, sizeof (XdgCallbackList));
#  885|     list_el->callback_id = callback_id;
#  886|->   list_el->callback = callback;
#  887|     list_el->data = data;
#  888|     list_el->destroy = destroy;

Error: CPPCHECK_WARNING (CWE-476): [#def133]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:887: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  885|     list_el->callback_id = callback_id;
#  886|     list_el->callback = callback;
#  887|->   list_el->data = data;
#  888|     list_el->destroy = destroy;
#  889|     list_el->next = callback_list;

Error: CPPCHECK_WARNING (CWE-476): [#def134]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:888: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  886|     list_el->callback = callback;
#  887|     list_el->data = data;
#  888|->   list_el->destroy = destroy;
#  889|     list_el->next = callback_list;
#  890|     if (list_el->next)

Error: CPPCHECK_WARNING (CWE-476): [#def135]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:889: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  887|     list_el->data = data;
#  888|     list_el->destroy = destroy;
#  889|->   list_el->next = callback_list;
#  890|     if (list_el->next)
#  891|       list_el->next->prev = list_el;

Error: CPPCHECK_WARNING (CWE-476): [#def136]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmime.c:890: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  888|     list_el->destroy = destroy;
#  889|     list_el->next = callback_list;
#  890|->   if (list_el->next)
#  891|       list_el->next->prev = list_el;
#  892|   

Error: CPPCHECK_WARNING (CWE-476): [#def137]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   67|     list = malloc (sizeof (XdgAliasList));
#   68|   
#   69|->   list->aliases = NULL;
#   70|     list->n_aliases = 0;
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:69:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:67:10: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:69:3: danger: ‘list’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   67|     list = malloc (sizeof (XdgAliasList));
#   68|   
#   69|->   list->aliases = NULL;
#   70|     list->n_aliases = 0;
#   71|   

Error: CPPCHECK_WARNING (CWE-476): [#def139]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   68|   
#   69|     list->aliases = NULL;
#   70|->   list->n_aliases = 0;
#   71|   
#   72|     return list;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:150:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.aliases’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:129:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:134:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:136:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:139:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:143:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:145:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:147:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:149:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:150:11: danger: ‘*list.aliases’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  148|   	{
#  149|   	  alloc <<= 1;
#  150|-> 	  list->aliases = realloc (list->aliases, 
#  151|   				   alloc * sizeof (XdgAlias));
#  152|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:157:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:129:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:134:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:136:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:139:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:143:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:145:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:147:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:153:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:154:50: acquire_memory: allocated here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:136:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:158:28: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:157:3: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  155|         list->n_aliases++;
#  156|       }
#  157|->   list->aliases = realloc (list->aliases, 
#  158|   			   list->n_aliases * sizeof (XdgAlias));
#  159|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def142]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:157:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:129:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:134:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:157:19: danger: write of ‘(long unsigned int)(*list.n_aliases + 16) * 16’ bytes at offset ‘0’ exceeds the buffer
#  155|         list->n_aliases++;
#  156|       }
#  157|->   list->aliases = realloc (list->aliases, 
#  158|   			   list->n_aliases * sizeof (XdgAlias));
#  159|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:163:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:129:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:134:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:135:3: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:157:28: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:162:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:163:5: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:163:12: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimealias.c:163:5: danger: argument 1 (‘*list.aliases’) NULL where non-null expected
#  161|     
#  162|     if (list->n_aliases > 1)
#  163|->     qsort (list->aliases, list->n_aliases, 
#  164|              sizeof (XdgAlias), alias_entry_cmp);
#  165|   }

Error: CPPCHECK_WARNING (CWE-476): [#def144]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  149|     
#  150|     cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache));
#  151|->   cache->minor = minor;
#  152|     cache->ref_count = 1;
#  153|     cache->buffer = buffer;

Error: CPPCHECK_WARNING (CWE-476): [#def145]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  150|     cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache));
#  151|     cache->minor = minor;
#  152|->   cache->ref_count = 1;
#  153|     cache->buffer = buffer;
#  154|     cache->size = st.st_size;

Error: CPPCHECK_WARNING (CWE-476): [#def146]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  151|     cache->minor = minor;
#  152|     cache->ref_count = 1;
#  153|->   cache->buffer = buffer;
#  154|     cache->size = st.st_size;
#  155|   

Error: CPPCHECK_WARNING (CWE-476): [#def147]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  152|     cache->ref_count = 1;
#  153|     cache->buffer = buffer;
#  154|->   cache->size = st.st_size;
#  155|   
#  156|    done:

Error: CPPCHECK_WARNING (CWE-476): [#def148]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:579: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  577|     lower = strdup (str);
#  578|     p = lower;
#  579|->   while (*p != 0)
#  580|       {
#  581|         char c = *p;

Error: CPPCHECK_WARNING (CWE-476): [#def149]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:981: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  979|     
#  980|     result = (char **) malloc (p * sizeof (char *));
#  981|->   memcpy (result, all_parents, p * sizeof (char *));
#  982|   
#  983|     return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1064:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + ((sizetype)(depth - i) + 18446744073709551615)’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1086:1: enter_function: entry to ‘__wk_xdg_cache_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1096:15: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1099:34: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1103:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:72: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:16: call_function: calling ‘get_simple_globs’ from ‘__wk_xdg_cache_get_simple_globs’
# 1062|           globs[*n] = malloc ((depth + 1) * sizeof (char));
# 1063|           for (i = 0; i < depth; i++)
# 1064|->           globs[*n][depth - i - 1] = prefix[i];
# 1065|           globs[*n][depth] = '\0';
# 1066|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1064:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1086:1: enter_function: entry to ‘__wk_xdg_cache_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1096:15: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1099:34: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1103:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:72: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:16: call_function: calling ‘get_simple_globs’ from ‘__wk_xdg_cache_get_simple_globs’
# 1062|           globs[*n] = malloc ((depth + 1) * sizeof (char));
# 1063|           for (i = 0; i < depth; i++)
# 1064|->           globs[*n][depth - i - 1] = prefix[i];
# 1065|           globs[*n][depth] = '\0';
# 1066|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1065:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + (sizetype)depth’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1086:1: enter_function: entry to ‘__wk_xdg_cache_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1096:15: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1099:34: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1103:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:72: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:16: call_function: calling ‘get_simple_globs’ from ‘__wk_xdg_cache_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:16: return_function: returning to ‘__wk_xdg_cache_get_simple_globs’ from ‘get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:14: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1103:49: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1103:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:72: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:16: call_function: calling ‘get_simple_globs’ from ‘__wk_xdg_cache_get_simple_globs’
# 1063|           for (i = 0; i < depth; i++)
# 1064|             globs[*n][depth - i - 1] = prefix[i];
# 1065|->         globs[*n][depth] = '\0';
# 1066|   
# 1067|           (*n)++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1065:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1086:1: enter_function: entry to ‘__wk_xdg_cache_get_simple_globs’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1096:15: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1099:34: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1103:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:72: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimecache.c:1105:16: call_function: calling ‘get_simple_globs’ from ‘__wk_xdg_cache_get_simple_globs’
# 1063|           for (i = 0; i < depth; i++)
# 1064|             globs[*n][depth - i - 1] = prefix[i];
# 1065|->         globs[*n][depth] = '\0';
# 1066|   
# 1067|           (*n)++;

Error: CPPCHECK_WARNING (CWE-476): [#def154]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  122|     while (tmp_element != NULL)
#  123|       {
#  124|->       if (strcmp (tmp_element->data, data) == 0 &&
#  125|   	  strcmp (tmp_element->mime_type, mime_type) == 0)
#  126|   	return glob_list;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:124:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:81: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: call_function: calling ‘_xdg_glob_list_append’ from ‘__wk_xdg_hash_append_glob’
#  122|     while (tmp_element != NULL)
#  123|       {
#  124|->       if (strcmp (tmp_element->data, data) == 0 &&
#  125|   	  strcmp (tmp_element->mime_type, mime_type) == 0)
#  126|   	return glob_list;

Error: CPPCHECK_WARNING (CWE-476): [#def156]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mime_type
#  123|       {
#  124|         if (strcmp (tmp_element->data, data) == 0 &&
#  125|-> 	  strcmp (tmp_element->mime_type, mime_type) == 0)
#  126|   	return glob_list;
#  127|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def157]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:125:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mime_type’ where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:96: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: call_function: calling ‘_xdg_glob_list_append’ from ‘__wk_xdg_hash_append_glob’
#  123|       {
#  124|         if (strcmp (tmp_element->data, data) == 0 &&
#  125|-> 	  strcmp (tmp_element->mime_type, mime_type) == 0)
#  126|   	return glob_list;
#  127|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:132:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_element’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: call_function: calling ‘_xdg_glob_list_append’ from ‘__wk_xdg_hash_append_glob’
#  130|   
#  131|     new_element = _xdg_glob_list_new ();
#  132|->   new_element->data = data;
#  133|     new_element->mime_type = mime_type;
#  134|     new_element->weight = weight;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:196:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:628:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__wk_xdg_hash_append_glob’
#  194|       {
#  195|         node = _xdg_glob_hash_node_new ();
#  196|->       node->character = character;
#  197|         node->next = glob_hash_node;
#  198|         glob_hash_node = node;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:219:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:628:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__wk_xdg_hash_append_glob’
#  217|   	    {
#  218|   	      node = _xdg_glob_hash_node_new ();
#  219|-> 	      node->character = character;
#  220|   	      node->next = prev_node->next;
#  221|   	      prev_node->next = node;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:238:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:628:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__wk_xdg_hash_append_glob’
#  236|   	{
#  237|   	  node = _xdg_glob_hash_node_new ();
#  238|-> 	  node->character = character;
#  239|   	  node->next = prev_node->next;
#  240|   	  prev_node->next = node;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:269:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:628:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__wk_xdg_hash_append_glob’
#  267|   		  child = _xdg_glob_hash_node_new ();
#  268|   		  child->character = 0;
#  269|-> 		  child->mime_type = strdup (mime_type);
#  270|   		  child->weight = weight;
#  271|   		  child->case_sensitive = case_sensitive;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:289:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:628:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__wk_xdg_hash_append_glob’
#  287|         node->child = _xdg_glob_hash_insert_ucs4 (node->child, text, mime_type, weight, case_sensitive);
#  288|       }
#  289|->   return glob_hash_node;
#  290|   }
#  291|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:289:10: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:628:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__wk_xdg_hash_append_glob’
#  287|         node->child = _xdg_glob_hash_insert_ucs4 (node->child, text, mime_type, weight, case_sensitive);
#  288|       }
#  289|->   return glob_hash_node;
#  290|   }
#  291|   

Error: CPPCHECK_WARNING (CWE-476): [#def165]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:395: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  393|     lower = strdup (str);
#  394|     p = lower;
#  395|->   while (*p != 0)
#  396|       {
#  397|         char c = *p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(glob)’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:81: acquire_memory: allocated here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: call_function: calling ‘_xdg_glob_list_append’ from ‘__wk_xdg_hash_append_glob’
#  623|       {
#  624|       case XDG_GLOB_LITERAL:
#  625|->       glob_hash->literal_list = _xdg_glob_list_append (glob_hash->literal_list, strdup (glob), strdup (mime_type), weight, case_sensitive);
#  626|         break;
#  627|       case XDG_GLOB_SIMPLE:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(mime_type)’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:609:1: enter_function: entry to ‘__wk_xdg_hash_append_glob’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:96: acquire_memory: allocated here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:625:33: call_function: calling ‘_xdg_glob_list_append’ from ‘__wk_xdg_hash_append_glob’
#  623|       {
#  624|       case XDG_GLOB_LITERAL:
#  625|->       glob_hash->literal_list = _xdg_glob_list_append (glob_hash->literal_list, strdup (glob), strdup (mime_type), weight, case_sensitive);
#  626|         break;
#  627|       case XDG_GLOB_SIMPLE:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:631:30: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(glob)’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:674:1: enter_function: entry to ‘__wk_xdg_glob_read_from_file’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:684:6: branch_false: following ‘false’ branch (when ‘glob_file’ is non-NULL)...
 branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:689:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:696:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:696:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:699:20: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:704:10: branch_false: following ‘false’ branch (when ‘version_two == 0’)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:716:15: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:717:10: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:719:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:727:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:751:7: call_function: calling ‘__wk_xdg_hash_append_glob’ from ‘__wk_xdg_glob_read_from_file’
#  629|         break;
#  630|       case XDG_GLOB_FULL:
#  631|->       glob_hash->full_list = _xdg_glob_list_append (glob_hash->full_list, strdup (glob), strdup (mime_type), weight, case_sensitive);
#  632|         break;
#  633|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:631:30: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(mime_type)’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:674:1: enter_function: entry to ‘__wk_xdg_glob_read_from_file’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:684:6: branch_false: following ‘false’ branch (when ‘glob_file’ is non-NULL)...
 branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:689:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:696:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:696:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:699:20: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:704:10: branch_false: following ‘false’ branch (when ‘version_two == 0’)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:716:15: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:717:10: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:719:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:727:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:751:7: call_function: calling ‘__wk_xdg_hash_append_glob’ from ‘__wk_xdg_glob_read_from_file’
#  629|         break;
#  630|       case XDG_GLOB_FULL:
#  631|->       glob_hash->full_list = _xdg_glob_list_append (glob_hash->full_list, strdup (glob), strdup (mime_type), weight, case_sensitive);
#  632|         break;
#  633|       }

Error: CPPCHECK_WARNING (CWE-476): [#def170]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   66|     list = malloc (sizeof (XdgIconList));
#   67|   
#   68|->   list->icons = NULL;
#   69|     list->n_icons = 0;
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:68:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:66:10: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:68:3: danger: ‘list’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   66|     list = malloc (sizeof (XdgIconList));
#   67|   
#   68|->   list->icons = NULL;
#   69|     list->n_icons = 0;
#   70|   

Error: CPPCHECK_WARNING (CWE-476): [#def172]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   67|   
#   68|     list->icons = NULL;
#   69|->   list->n_icons = 0;
#   70|   
#   71|     return list;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:149:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.icons’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:128:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:133:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:135:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:138:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:142:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:144:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:146:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:148:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:149:11: danger: ‘*list.icons’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  147|   	{
#  148|   	  alloc <<= 1;
#  149|-> 	  list->icons = realloc (list->icons, 
#  150|   				   alloc * sizeof (XdgIcon));
#  151|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:156:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:128:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:133:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:135:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:138:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:142:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:144:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:146:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:152:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:153:46: acquire_memory: allocated here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:135:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:157:28: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:156:3: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  154|         list->n_icons++;
#  155|       }
#  156|->   list->icons = realloc (list->icons, 
#  157|   			   list->n_icons * sizeof (XdgIcon));
#  158|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def175]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:156:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:128:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:133:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:156:17: danger: write of ‘(long unsigned int)(*list.n_icons + 16) * 16’ bytes at offset ‘0’ exceeds the buffer
#  154|         list->n_icons++;
#  155|       }
#  156|->   list->icons = realloc (list->icons, 
#  157|   			   list->n_icons * sizeof (XdgIcon));
#  158|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:162:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:128:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:133:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:134:3: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:156:26: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:161:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:162:5: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:162:12: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:162:5: danger: argument 1 (‘*list.icons’) NULL where non-null expected
#  160|     
#  161|     if (list->n_icons > 1)
#  162|->     qsort (list->icons, list->n_icons, 
#  163|              sizeof (XdgIcon), icon_entry_cmp);
#  164|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:169:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:163:9: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:167:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:169:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:169:7: danger: ‘out + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  167|     while (*p) 
#  168|       {
#  169|->       out[i++] = _xdg_utf8_to_ucs4 (p);
#  170|         p = _xdg_utf8_next_char (p); 
#  171|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:172:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:163:9: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:167:10: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:172:6: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeint.c:172:3: danger: ‘out + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  170|         p = _xdg_utf8_next_char (p); 
#  171|       }
#  172|->   out[i] = 0;
#  173|     *len = i;
#  174|    

Error: CPPCHECK_WARNING (CWE-476): [#def179]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  105|     matchlet = malloc (sizeof (XdgMimeMagicMatchlet));
#  106|   
#  107|->   matchlet->indent = 0;
#  108|     matchlet->offset = 0;
#  109|     matchlet->value_length = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:107:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘matchlet’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:800:1: enter_function: entry to ‘__wk_xdg_magic_read_from_file’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:808:6: branch_false: following ‘false’ branch (when ‘magic_file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: call_function: calling ‘_xdg_mime_magic_read_magic_file’ from ‘__wk_xdg_magic_read_from_file’
#  105|     matchlet = malloc (sizeof (XdgMimeMagicMatchlet));
#  106|   
#  107|->   matchlet->indent = 0;
#  108|     matchlet->offset = 0;
#  109|     matchlet->value_length = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def181]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  106|   
#  107|     matchlet->indent = 0;
#  108|->   matchlet->offset = 0;
#  109|     matchlet->value_length = 0;
#  110|     matchlet->value = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def182]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  107|     matchlet->indent = 0;
#  108|     matchlet->offset = 0;
#  109|->   matchlet->value_length = 0;
#  110|     matchlet->value = NULL;
#  111|     matchlet->mask = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def183]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  108|     matchlet->offset = 0;
#  109|     matchlet->value_length = 0;
#  110|->   matchlet->value = NULL;
#  111|     matchlet->mask = NULL;
#  112|     matchlet->range_length = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def184]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  109|     matchlet->value_length = 0;
#  110|     matchlet->value = NULL;
#  111|->   matchlet->mask = NULL;
#  112|     matchlet->range_length = 1;
#  113|     matchlet->word_size = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def185]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  110|     matchlet->value = NULL;
#  111|     matchlet->mask = NULL;
#  112|->   matchlet->range_length = 1;
#  113|     matchlet->word_size = 1;
#  114|     matchlet->next = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def186]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  111|     matchlet->mask = NULL;
#  112|     matchlet->range_length = 1;
#  113|->   matchlet->word_size = 1;
#  114|     matchlet->next = NULL;
#  115|   

Error: CPPCHECK_WARNING (CWE-476): [#def187]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  112|     matchlet->range_length = 1;
#  113|     matchlet->word_size = 1;
#  114|->   matchlet->next = NULL;
#  115|   
#  116|     return matchlet;

Error: CPPCHECK_WARNING (CWE-401): [#def188]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:188: error[memleakOnRealloc]: Common realloc mistake: 'retval' nulled but not freed upon failure
#  186|   	{
#  187|   	  len = len + 128;
#  188|-> 	  retval = realloc (retval, len);
#  189|   	}
#  190|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:261:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘match’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:800:1: enter_function: entry to ‘__wk_xdg_magic_read_from_file’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:808:6: branch_false: following ‘false’ branch (when ‘magic_file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: call_function: calling ‘_xdg_mime_magic_read_magic_file’ from ‘__wk_xdg_magic_read_from_file’
#  259|       return XDG_MIME_MAGIC_ERROR;
#  260|   
#  261|->   match->priority = _xdg_mime_magic_read_a_number (magic_file, &end_of_file);
#  262|     if (end_of_file)
#  263|       return XDG_MIME_MAGIC_EOF;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:779:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘match’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:800:1: enter_function: entry to ‘__wk_xdg_magic_read_from_file’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:808:6: branch_false: following ‘false’ branch (when ‘magic_file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: call_function: calling ‘_xdg_mime_magic_read_magic_file’ from ‘__wk_xdg_magic_read_from_file’
#  777|   	  state = _xdg_mime_magic_parse_magic_line (magic_file, match);
#  778|   	  if (state == XDG_MIME_MAGIC_SECTION ||
#  779|-> 	      (state == XDG_MIME_MAGIC_EOF && match->mime_type))
#  780|   	    {
#  781|   	      match->matchlet = _xdg_mime_magic_matchlet_mirror (match->matchlet);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:781:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘match’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:800:1: enter_function: entry to ‘__wk_xdg_magic_read_from_file’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:808:6: branch_false: following ‘false’ branch (when ‘magic_file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:7: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:811:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:813:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:814:9: call_function: calling ‘_xdg_mime_magic_read_magic_file’ from ‘__wk_xdg_magic_read_from_file’
#  779|   	      (state == XDG_MIME_MAGIC_EOF && match->mime_type))
#  780|   	    {
#  781|-> 	      match->matchlet = _xdg_mime_magic_matchlet_mirror (match->matchlet);
#  782|   	      _xdg_mime_magic_insert_match (mime_magic, match);
#  783|   	    }

Error: CPPCHECK_WARNING (CWE-476): [#def192]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   68|     list = malloc (sizeof (XdgParentList));
#   69|   
#   70|->   list->parents = NULL;
#   71|     list->n_mimes = 0;
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:70:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:68:10: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:70:3: danger: ‘list’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   68|     list = malloc (sizeof (XdgParentList));
#   69|   
#   70|->   list->parents = NULL;
#   71|     list->n_mimes = 0;
#   72|   

Error: CPPCHECK_WARNING (CWE-476): [#def194]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:71: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   69|   
#   70|     list->parents = NULL;
#   71|->   list->n_mimes = 0;
#   72|   
#   73|     return list;

Error: CPPCHECK_WARNING (CWE-457): [#def195]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:115: error[uninitvar]: Uninitialized variable: &key.n_parents
#  113|         key.parents = NULL;
#  114|   
#  115|->       entry = bsearch (&key, list->parents, list->n_mimes,
#  116|   		       sizeof (XdgMimeParents), &parent_entry_cmp);
#  117|         if (entry)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:142:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:145:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:149:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:151:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:154:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:23: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:36: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:23: danger: dereference of NULL ‘*list.parents + (long unsigned int)i * 24’
#  154|         for (i = 0; i < list->n_mimes; i++)
#  155|   	{
#  156|-> 	  if (strcmp (list->parents[i].mime, line) == 0)
#  157|   	    {
#  158|   	      entry = &(list->parents[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:168:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.parents’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:142:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:145:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:149:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:151:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:163:10: branch_true: following ‘true’ branch (when ‘entry’ is NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:165:14: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:165:14: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:167:15: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:168:15: danger: ‘*list.parents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  166|   	    {
#  167|   	      alloc <<= 1;
#  168|-> 	      list->parents = realloc (list->parents, 
#  169|   				       alloc * sizeof (XdgMimeParents));
#  170|   	    }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:188:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*entry.parents + ((long unsigned int)*entry.n_parents + 18446744073709551615) * 8’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:142:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:145:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:149:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:151:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:154:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:23: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:14: branch_true: following ‘true’ branch (when the strings are equal)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:163:10: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:163:10: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:177:12: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:177:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:179:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:180:28: acquire_memory: this call could return NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:188:7: danger: ‘*entry.parents + ((long unsigned int)*entry.n_parents + 18446744073709551615) * 8’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  186|   				    (entry->n_parents + 2) * sizeof (char *));
#  187|   	}
#  188|->       entry->parents[entry->n_parents - 1] = strdup (sep);
#  189|         entry->parents[entry->n_parents] = NULL;
#  190|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:3: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.parents’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:3: danger: ‘*list.parents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  190|       }
#  191|   
#  192|->   list->parents = realloc (list->parents, 
#  193|   			   list->n_mimes * sizeof (XdgMimeParents));
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:142:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:145:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:149:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:151:8: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:154:19: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:23: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:156:14: branch_true: following ‘true’ branch (when the strings are equal)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:163:10: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:163:10: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:177:12: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:177:10: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:179:11: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:188:46: acquire_memory: allocated here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:3: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/16)
#  190|       }
#  191|   
#  192|->   list->parents = realloc (list->parents, 
#  193|   			   list->n_mimes * sizeof (XdgMimeParents));
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def201]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:19: danger: write of ‘(long unsigned int)(*list.n_mimes + 16) * 24’ bytes at offset ‘0’ exceeds the buffer
#  190|       }
#  191|   
#  192|->   list->parents = realloc (list->parents, 
#  193|   			   list->n_mimes * sizeof (XdgMimeParents));
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def202]
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:198:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:135:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:140:11: branch_false: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:141:3: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:192:28: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:197:6: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:198:5: branch_true: ...to here
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:198:12: release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:198:5: danger: argument 1 (‘*list.parents’) NULL where non-null expected
#  196|     
#  197|     if (list->n_mimes > 1)
#  198|->     qsort (list->parents, list->n_mimes, 
#  199|              sizeof (XdgMimeParents), &parent_entry_cmp);
#  200|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator.c:61:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘directory’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator.c:51:6: enter_function: entry to ‘pas_bitfit_allocator_commit_view’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator.c:60:17: call_function: calling ‘pas_compact_bitfit_directory_ptr_load’ from ‘pas_bitfit_allocator_commit_view’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator.c:60:17: return_function: return of NULL to ‘pas_bitfit_allocator_commit_view’ from ‘pas_compact_bitfit_directory_ptr_load’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator.c:61:5: danger: dereference of NULL ‘directory’
#   59|   
#   60|       directory = pas_compact_bitfit_directory_ptr_load(&view->directory);
#   61|->     heap = directory->heap;
#   62|   
#   63|       /* We're almost certainly gonna commit a page, so let's just get this out of the way. We need to

Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_directory.h:60:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_heap.c:200:6: enter_function: entry to ‘pas_bitfit_heap_for_each_live_object’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_heap.c:212:10: branch_true: following ‘true’ branch (when ‘variant != 3’)...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_heap.c:216:21: call_function: inlined call to ‘pas_bitfit_heap_get_directory’ from ‘pas_bitfit_heap_for_each_live_object’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_heap.c:218:25: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_heap.c:221:20: branch_true: ...to here
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_heap.c:221:20: call_function: calling ‘pas_bitfit_directory_get_view’ from ‘pas_bitfit_heap_for_each_live_object’
#   58|                                128);
#   59|   
#   60|-> PAS_DECLARE_SEGMENTED_VECTOR(pas_bitfit_directory_view_vector,
#   61|                                pas_compact_atomic_bitfit_view_ptr,
#   62|                                8);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_bitfit_page_inlines.h:219:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/jit_heap_config.c:375:1: enter_function: entry to ‘jit_heap_config_specialized_local_allocator_try_allocate_slow’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/jit_heap_config.c:375:1: call_function: inlined call to ‘pas_local_allocator_try_allocate_slow’ from ‘jit_heap_config_specialized_local_allocator_try_allocate_slow’
 branch_true: ...to here
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/jit_heap_config.c:375:1: call_function: inlined call to ‘pas_local_allocator_try_allocate_slow’ from ‘jit_heap_config_specialized_local_allocator_try_allocate_slow’
#  217|       PAS_ASSERT(page_config.base.is_enabled);
#  218|   
#  219|->     num_live_bits = page->num_live_bits;
#  220|       if (!num_live_bits)
#  221|           pas_bitfit_view_note_nonemptiness(view);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.h:112:17: warning[-Wanalyzer-jump-through-null]: jump through null pointer
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_deallocate_not_small_exclusive_segregated’ from ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
#  110|       pas_msl_free_logging((void*)begin);
#  111|   
#  112|->     page_base = config.page_header_func(begin);
#  113|       if (page_base) {
#  114|           switch (pas_page_base_get_kind(page_base)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.h:127:13: warning[-Wanalyzer-jump-through-null]: jump through null pointer
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_deallocate_not_small_exclusive_segregated’ from ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
#  125|           case pas_small_bitfit_page_kind:
#  126|               PAS_ASSERT(!config.small_bitfit_is_in_megapage);
#  127|->             config.small_bitfit_config.specialized_page_deallocate_with_page(
#  128|                   pas_page_base_get_bitfit(page_base),
#  129|                   begin);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.h:140:13: warning[-Wanalyzer-jump-through-null]: jump through null pointer
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_deallocate_not_small_exclusive_segregated’ from ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
#  138|               return true;
#  139|           case pas_medium_bitfit_page_kind:
#  140|->             config.medium_bitfit_config.specialized_page_deallocate_with_page(
#  141|                   pas_page_base_get_bitfit(page_base),
#  142|                   begin);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def209]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.h:145:13: warning[-Wanalyzer-jump-through-null]: jump through null pointer
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_deallocate_not_small_exclusive_segregated’ from ‘pas_utility_heap_config_specialized_try_deallocate_not_small_exclusive_segregated’
#  143|               return true;
#  144|           case pas_marge_bitfit_page_kind:
#  145|->             config.marge_bitfit_config.specialized_page_deallocate_with_page(
#  146|                   pas_page_base_get_bitfit(page_base),
#  147|                   begin);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_heap_inlines.h:76:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cached_index’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_allocate_common_impl_slow’ from ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
#   74|   #endif /* PAS_ENABLE_TESTING */
#   75|       
#   76|->     return pas_heap_ensure_size_directory_for_size_slow(
#   77|           heap, size, alignment, force_size_lookup, config.config_ptr, cached_index);
#   78|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_local_allocator_inlines.h:969:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/jit_heap_config.c:375:1: enter_function: entry to ‘jit_heap_config_specialized_local_allocator_try_allocate_small_segregated_slow’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/jit_heap_config.c:375:1: call_function: inlined call to ‘pas_local_allocator_try_allocate_small_segregated_slow’ from ‘jit_heap_config_specialized_local_allocator_try_allocate_small_segregated_slow’
 branch_true: ...to here
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/jit_heap_config.c:375:1: call_function: inlined call to ‘pas_local_allocator_try_allocate_small_segregated_slow’ from ‘jit_heap_config_specialized_local_allocator_try_allocate_small_segregated_slow’
#  967|           old_page = pas_segregated_page_for_boundary(
#  968|               (void*)pas_local_allocator_page_boundary(allocator, page_config), page_config);
#  969|->         old_view = old_page->owner;
#  970|           if (!pas_segregated_view_is_some_exclusive(old_view)) {
#  971|               PAS_ASSERT(!pas_segregated_page_config_is_utility(page_config));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def212]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:120:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘word_ptr’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:923:6: enter_function: entry to ‘pas_page_sharing_pool_verify’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:927:5: call_function: calling ‘verify_first_delta’ from ‘pas_page_sharing_pool_verify’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:927:5: return_function: returning to ‘pas_page_sharing_pool_verify’ from ‘verify_first_delta’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:928:5: call_function: calling ‘verify_participants’ from ‘pas_page_sharing_pool_verify’
#  118|               word_ptr = pas_page_sharing_pool_segmented_delta_bitvector_get_ptr(
#  119|                   &pool->delta, PAS_BITVECTOR_WORD_INDEX(index));
#  120|->             PAS_ASSERT(pas_bitvector_get_from_word(*word_ptr, index));
#  121|           } else {
#  122|               uint64_t epoch;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.h:51:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:923:6: enter_function: entry to ‘pas_page_sharing_pool_verify’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:927:5: call_function: calling ‘verify_first_delta’ from ‘pas_page_sharing_pool_verify’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:927:5: return_function: returning to ‘pas_page_sharing_pool_verify’ from ‘verify_first_delta’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_pool.c:928:5: call_function: calling ‘verify_participants’ from ‘pas_page_sharing_pool_verify’
#   49|   typedef struct pas_page_sharing_pool pas_page_sharing_pool;
#   50|   
#   51|-> PAS_DECLARE_SEGMENTED_VECTOR(pas_page_sharing_pool_segmented_delta_bitvector,
#   52|                                unsigned,
#   53|                                4);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.h:54:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘y’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:311:1: enter_function: entry to ‘pas_red_black_tree_remove’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:324:5: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:325:5: call_function: inlined call to ‘pas_red_black_tree_node_get_parent’ from ‘pas_red_black_tree_remove’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:328:10: call_function: inlined call to ‘pas_red_black_tree_node_get_left’ from ‘pas_red_black_tree_remove’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:328:8: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:328:50: call_function: inlined call to ‘pas_red_black_tree_node_get_right’ from ‘pas_red_black_tree_remove’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:328:9: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:331:13: branch_false: ...to here
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:331:13: call_function: calling ‘pas_red_black_tree_node_successor’ from ‘pas_red_black_tree_remove’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:331:13: return_function: return of NULL to ‘pas_red_black_tree_remove’ from ‘pas_red_black_tree_node_successor’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_red_black_tree.c:333:14: call_function: inlined call to ‘pas_red_black_tree_node_get_left’ from ‘pas_red_black_tree_remove’
#   52|   typedef struct pas_red_black_tree_node pas_red_black_tree_node;
#   53|   
#   54|-> PAS_DEFINE_COMPACT_ATOMIC_PTR(pas_red_black_tree_node, pas_red_black_tree_node_ptr);
#   55|   PAS_DEFINE_COMPACT_TAGGED_ATOMIC_PTR(uintptr_t, pas_red_black_tree_node_tagged_ptr);
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_directory.h:109:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_participant.c:56:1: enter_function: entry to ‘pas_page_sharing_participant_get_payload’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_participant.c:70:18: call_function: inlined call to ‘pas_segregated_directory_data_ptr_load’ from ‘pas_page_sharing_participant_get_payload’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_participant.c:70:18: call_function: inlined call to ‘pas_segregated_directory_data_try_get_sharing_payload’ from ‘pas_page_sharing_participant_get_payload’
 release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_page_sharing_participant.c:70:18: call_function: inlined call to ‘pas_segregated_directory_data_try_get_sharing_payload’ from ‘pas_page_sharing_participant_get_payload’
#  107|   PAS_DEFINE_COMPACT_ATOMIC_PTR(pas_segregated_directory_data, pas_segregated_directory_data_ptr);
#  108|   
#  109|-> PAS_DEFINE_COMPACT_TAGGED_ATOMIC_PTR(uintptr_t, pas_segregated_directory_sharing_payload_ptr);
#  110|   
#  111|   struct pas_segregated_directory {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def216]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_heap_inlines.h:70:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cached_index’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_allocate_common_impl_slow’ from ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
#   68|   
#   69|   slow:
#   70|->     return pas_segregated_heap_size_directory_for_index_slow(heap, index, cached_index, config);
#   71|   }
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_page_inlines.h:214:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c:1204:23: enter_function: entry to ‘pas_thread_local_cache_append_deallocation_slow’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c:1212:5: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c:1213:42: branch_true: ...to here
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c:1216:5: call_function: calling ‘pas_thread_local_cache_flush_deallocation_log’ from ‘pas_thread_local_cache_append_deallocation_slow’
#  212|       
#  213|       held_lock_value = *held_lock;
#  214|->     page_lock = page->lock_ptr;
#  215|   
#  216|       PAS_TESTING_ASSERT(page_lock);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_page_inlines.h:440:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:121:6: enter_function: entry to ‘pas_try_deallocate_slow_no_cache’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:131:8: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:143:9: call_function: inlined call to ‘pas_thread_local_cache_can_set’ from ‘pas_try_deallocate_slow_no_cache’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:152:8: branch_false: following ‘false’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:155:13: branch_false: ...to here
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:183:12: branch_true: following ‘true’ branch (when ‘page_base’ is non-NULL)...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:184:21: call_function: inlined call to ‘pas_page_base_get_kind’ from ‘pas_try_deallocate_slow_no_cache’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_deallocate.c:202:17: call_function: calling ‘deallocate_segregated’ from ‘pas_try_deallocate_slow_no_cache’
#  438|                   pas_log("Notifying partial eligibility on view %p.\n", partial_view);
#  439|               
#  440|->             if (!partial_view->eligibility_has_been_noted)
#  441|                   pas_segregated_partial_view_note_eligibility(partial_view, page);
#  442|               break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:80:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘shared_view’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:65:6: enter_function: entry to ‘pas_segregated_shared_handle_destroy’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:78:19: call_function: calling ‘pas_compact_segregated_shared_view_ptr_load’ from ‘pas_segregated_shared_handle_destroy’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:78:19: return_function: return of NULL to ‘pas_segregated_shared_handle_destroy’ from ‘pas_compact_segregated_shared_view_ptr_load’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:80:5: danger: dereference of NULL ‘shared_view’
#   78|       shared_view = pas_compact_segregated_shared_view_ptr_load(&handle->shared_view);
#   79|   
#   80|->     PAS_ASSERT(pas_unwrap_shared_handle(shared_view->shared_handle_or_page_boundary,
#   81|                                           page_config) == handle);
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:111:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘shared_view’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:91:6: enter_function: entry to ‘pas_segregated_shared_handle_note_emptiness’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:98:19: call_function: calling ‘pas_compact_segregated_shared_view_ptr_load’ from ‘pas_segregated_shared_handle_note_emptiness’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:98:19: return_function: return of NULL to ‘pas_segregated_shared_handle_note_emptiness’ from ‘pas_compact_segregated_shared_view_ptr_load’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_shared_handle.c:111:9: danger: dereference of NULL ‘shared_view’
#  109|          Also, this will at worst happen once per granule. So this loop is likely not a
#  110|          terrible thing. */
#  111|->     if (shared_view->is_in_use_for_allocation_count) {
#  112|           if (verbose)
#  113|               pas_log("Not setting shared %p as empty because it's in use.\n", shared_view);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:972:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:957:18: enter_function: entry to ‘pas_segregated_size_directory_compute_summary_for_unowned_exclusive’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:965:5: branch_true: following ‘true’ branch...
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:967:12: call_function: inlined call to ‘pas_segregated_size_directory_data_ptr_load’ from ‘pas_segregated_size_directory_compute_summary_for_unowned_exclusive’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:968:20: branch_true: ...to here
 release_memory: ‘0’ is NULL
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:972:21: danger: dereference of NULL ‘(pas_segregated_size_directory_data *)<unknown>’
#  970|       result = pas_heap_summary_create_empty();
#  971|       
#  972|->     payload_size = (data->offset_from_page_boundary_to_end_of_last_object -
#  973|                       data->offset_from_page_boundary_to_first_object);
#  974|       

Error: GCC_ANALYZER_WARNING (CWE-457): [#def222]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory_inlines.h:62:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cached_index’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: enter_function: entry to ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_allocate_common_impl_slow’ from ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
#   60|       if (pas_segregated_size_directory_has_tlc_allocator(directory)
#   61|           && (pas_thread_local_cache_try_get() || pas_thread_local_cache_can_set())) {
#   62|->         return pas_segregated_size_directory_get_allocator_from_tlc(
#   63|               directory, size, size_lookup_mode, config, cached_index);
#   64|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_try_allocate_common.h:167:17: warning[-Wanalyzer-jump-through-null]: jump through null pointer
webkitgtk-2.49.1/Source/bmalloc/libpas/src/libpas/pas_utility_heap_config.c:43:1: call_function: inlined call to ‘pas_try_allocate_common_impl_slow’ from ‘pas_utility_heap_config_specialized_try_allocate_common_impl_slow’
#  165|   
#  166|       type = heap_ref->type;
#  167|->     alignment = PAS_MAX(alignment, config.get_type_alignment(type));
#  168|       
#  169|       if (PAS_UNLIKELY(pas_debug_heap_is_enabled(config.kind))) {

Error: COMPILER_WARNING: [#def224] [important]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-2agr9n/CheckSymbolExists.c:8:19: error[error]: ‘timingsafe_bcmp’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def225] [important]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-Ed0Hxo/CheckSymbolExists.c:8:19: error[error]: ‘MAP_ALIGNED’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def226] [important]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-JGAJkZ/src.c:6:34: error[error]: ‘struct stat’ has no member named ‘st_birthtime’

Error: COMPILER_WARNING: [#def227] [important]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-JriwGI/CheckSymbolExists.c:8:19: error[error]: ‘_aligned_malloc’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def228]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-LCIOaq/CheckSymbolExists.c:2:10: warning[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def229] [important]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-b0jGfL/CheckSymbolExists.c:8:19: error[error]: ‘SHM_ANON’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def230]
webkitgtk-2.49.1/redhat-linux-build/webkit2gtk-4.1/CMakeFiles/CMakeScratch/TryCompile-f1nJZg/CheckIncludeFile.c:1:10: warning[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def231] [important]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-6oI3BN/CheckSymbolExists.c:8:19: error[error]: ‘_aligned_malloc’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def232] [important]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-AGz2WJ/src.c:6:34: error[error]: ‘struct stat’ has no member named ‘st_birthtime’

Error: COMPILER_WARNING: [#def233]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-IaPMZV/CheckSymbolExists.c:2:10: warning[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def234] [important]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-KYh1UI/CheckSymbolExists.c:8:19: error[error]: ‘SHM_ANON’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def235] [important]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-Q7AcGz/CheckSymbolExists.c:8:19: error[error]: ‘MAP_ALIGNED’ undeclared (first use in this function)

Error: COMPILER_WARNING: [#def236]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-VnDsJT/CheckIncludeFile.c:1:10: warning[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def237] [important]
webkitgtk-2.49.1/redhat-linux-build/webkitgtk-6.0/CMakeFiles/CMakeScratch/TryCompile-uhkmgc/CheckSymbolExists.c:8:19: error[error]: ‘timingsafe_bcmp’ undeclared (first use in this function)

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-167.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namewebkitgtk-2.49.1-1.fc43
store-results-to/tmp/tmps6d8ztt0/webkitgtk-2.49.1-1.fc43.tar.xz
time-created2025-04-25 21:14:54
time-finished2025-04-26 02:10:39
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmps6d8ztt0/webkitgtk-2.49.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmps6d8ztt0/webkitgtk-2.49.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9