cve_id stringlengths 13 16 | hash stringlengths 40 40 | repo_url stringlengths 56 159 | cve_description stringlengths 30 33 | cvss2_base_score null | cvss3_base_score null | published_date null | severity null | cwe_id stringclasses 171
values | cwe_name stringclasses 1
value | cwe_description stringclasses 1
value | commit_message stringlengths 17 20 | commit_date null | version_tag null | repo_total_files null | repo_total_commits null | file_paths stringlengths 8 104 | language stringclasses 2
values | diff_stats stringlengths 48 146 | diff_with_context null | vulnerable_code stringlengths 10 83k ⌀ | fixed_code stringlengths 8 83.3k | security_keywords stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 4, "lines_deleted": 0}} | null | null | Document* LocalDOMWindow::document() const
{
return m_document.get();
} | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 35, "lines_deleted": 0}} | null | null | void LocalDOMWindow::scrollTo(const ScrollToOptions& scrollToOptions) const
{
if (!isCurrentlyDisplayedInFrame())
return;
FrameView* view = frame()->view();
if (!view)
return;
// It is only necessary to have an up-to-date layout if the position may be clamped,
// which is never the... | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 6, "lines_deleted": 0}} | null | null | int LocalDOMWindow::requestIdleCallback(IdleRequestCallback* callback, double timeoutMillis)
{
if (Document* document = this->document())
return document->requestIdleCallback(callback, timeoutMillis);
return 0;
} | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void LocalDOMWindow::cancelAnimationFrame(int id)
{
if (Document* document = this->document())
document->cancelAnimationFrame(id);
} | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 18, "lines_deleted": 0}} | null | null | bool LocalDOMWindow::removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener> listener, bool useCapture)
{
if (!EventTarget::removeEventListener(eventType, listener, useCapture))
return false;
if (frame() && frame()->host())
frame()->host()->eventHandlerRegistry(... | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | void LocalDOMWindow::setStatus(const String& string)
{
m_status = string;
if (!frame())
return;
FrameHost* host = frame()->host();
if (!host)
return;
ASSERT(frame()->document()); // Client calls shouldn't be made when the frame is in inconsistent state.
host->chromeClient().se... | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | void LocalDOMWindow::blur()
{
} | [] | ||
CVE-2015-1292 | 5e6069a4fd1df49e5e01e655947c7cd01917a285 | https://github.com/chromium/chromium/commit/c62d8db228d01f75d74b5a3420c6dec8f7d961fd | Vulnerability in CVE-2015-1292 | null | null | null | null | CWE-264 | Fix CVE-2015-1292 | null | null | null | null | ["third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp"] | C++ | {"third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | PassRefPtrWillBeRawPtr<Document> LocalDOMWindow::createDocument(const String& mimeType, const DocumentInit& init, bool forceXHTML)
{
RefPtrWillBeRawPtr<Document> document = nullptr;
if (forceXHTML) {
// This is a hack for XSLTProcessor. See XSLTProcessor::createDocumentFromSource().
document = D... | [] | ||
CVE-2015-1294 | 1e6bbb2703337bd897416f45857758ad5505a641 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 71, "lines_deleted": 89}} | null | bool SkMatrix::invertNonIdentity(SkMatrix* inv) const {
SkASSERT(!this->isIdentity());
TypeMask mask = this->getType();
if (0 == (mask & ~(kScale_Mask | kTranslate_Mask))) {
bool invertible = true;
if (inv) {
if (mask & kScale_Mask) {
SkScalar invX = fMat[kMScal... | bool SkMatrix::invertNonIdentity(SkMatrix* inv) const {
SkASSERT(!this->isIdentity());
TypeMask mask = this->getType();
if (0 == (mask & ~(kScale_Mask | kTranslate_Mask))) {
bool invertible = true;
if (inv) {
if (mask & kScale_Mask) {
SkScalar invX = fMat[kMScal... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | uint8_t SkMatrix::computePerspectiveTypeMask() const {
// Benchmarking suggests that replacing this set of SkScalarAs2sCompliment
// is a win, but replacing those below is not. We don't yet understand
// that result.
if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) {
// If ... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 16, "lines_deleted": 0}} | null | null | void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV, SkScalar px, SkScalar py) {
const SkScalar oneMinusCosV = 1 - cosV;
fMat[kMScaleX] = cosV;
fMat[kMSkewX] = -sinV;
fMat[kMTransX] = sdot(sinV, py, oneMinusCosV, px);
fMat[kMSkewY] = sinV;
fMat[kMScaleY] = cosV;
fMat[kMTransY] = ... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 28, "lines_deleted": 0}} | null | null | void SkMatrix::Trans_pts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
SkASSERT(m.getType() <= kTranslate_Mask);
if (count > 0) {
SkScalar tx = m.getTranslateX();
SkScalar ty = m.getTranslateY();
if (count & 1) {
dst->fX = src->fX + tx;
dst-... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 4, "lines_deleted": 0}} | null | null | static inline SkScalar dcross_dscale(double a, double b,
double c, double d, double scale) {
return SkDoubleToScalar(dcross(a, b, c, d) * scale);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT((m.getType() & (kScale_Mask | kAffine_Mask | kPerspective_Mask))
== kScale_Mask);
pt->fX = sx * m.fMat[kMScaleX] + m.fMat[kMTransX];
pt->fY = sy * m.fMat[kMScaleY] + m... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 15, "lines_deleted": 0}} | null | null | void SkMatrix::preTranslate(SkScalar dx, SkScalar dy) {
if (!dx && !dy) {
return;
}
if (this->hasPerspective()) {
SkMatrix m;
m.setTranslate(dx, dy);
this->preConcat(m);
} else {
fMat[kMTransX] += sdot(fMat[kMScaleX], dx, fMat[kMSkewX], dy);
fMat[kMTra... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | size_t SkMatrix::writeToMemory(void* buffer) const {
// TODO write less for simple matrices
static const size_t sizeInMemory = 9 * sizeof(SkScalar);
if (buffer) {
memcpy(buffer, fMat, sizeInMemory);
}
return sizeInMemory;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV) {
fMat[kMScaleX] = cosV;
fMat[kMSkewX] = -sinV;
fMat[kMTransX] = 0;
fMat[kMSkewY] = sinV;
fMat[kMScaleY] = cosV;
fMat[kMTransY] = 0;
fMat[kMPersp0] = fMat[kMPersp1] = 0;
fMat[kMPersp2] = 1;
this->setTypeMask(kUnknown_M... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 28, "lines_deleted": 0}} | null | null | static double sk_inv_determinant(const float mat[9], int isPerspective) {
double det;
if (isPerspective) {
det = mat[SkMatrix::kMScaleX] *
dcross(mat[SkMatrix::kMScaleY], mat[SkMatrix::kMPersp2],
mat[SkMatrix::kMTransY], mat[SkMatrix::kMPersp1])
+
... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::toString(SkString* str) const {
str->appendf("[%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f]",
fMat[0], fMat[1], fMat[2], fMat[3], fMat[4], fMat[5],
fMat[6], fMat[7], fMat[8]);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT((m.getType() & (kAffine_Mask | kPerspective_Mask))== kAffine_Mask);
SkASSERT(0 == m.fMat[kMTransX]);
SkASSERT(0 == m.fMat[kMTransY]);
#ifdef SK_LEGACY_MATRIX_MATH_ORDER
pt->fX = sx * m.fMat[... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::set9(const SkScalar buffer[]) {
memcpy(fMat, buffer, 9 * sizeof(SkScalar));
normalize_perspective(fMat);
this->setTypeMask(kUnknown_Mask);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 58, "lines_deleted": 0}} | null | null | bool SkMatrix::Poly4Proc(const SkPoint srcPt[], SkMatrix* dst,
const SkPoint& scale) {
float a1, a2;
float x0, y0, x1, y1, x2, y2;
x0 = srcPt[2].fX - srcPt[0].fX;
y0 = srcPt[2].fY - srcPt[0].fY;
x1 = srcPt[2].fX - srcPt[1].fX;
y1 = srcPt[2].fY - srcPt[1].fY;
x2 ... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | SkScalar SkMatrix::getMinScale() const {
SkScalar factor;
if (get_scale_factor<kMin_MinMaxOrBoth>(this->getType(), fMat, &factor)) {
return factor;
} else {
return -1;
}
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 13, "lines_deleted": 0}} | null | null | void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT(m.hasPerspective());
SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX];
SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY];
S... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::preSkew(SkScalar sx, SkScalar sy) {
SkMatrix m;
m.setSkew(sx, sy);
this->preConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 43, "lines_deleted": 0}} | null | null | bool SkMatrix::setPolyToPoly(const SkPoint src[], const SkPoint dst[],
int count) {
if ((unsigned)count > 4) {
SkDebugf("--- SkMatrix::setPolyToPoly count out of range %d\n", count);
return false;
}
if (0 == count) {
this->reset();
return true;
... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 12, "lines_deleted": 0}} | null | null | void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT((m.getType() & (kAffine_Mask | kPerspective_Mask)) == kAffine_Mask);
#ifdef SK_LEGACY_MATRIX_MATH_ORDER
pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]);
pt... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::preRotate(SkScalar degrees, SkScalar px, SkScalar py) {
SkMatrix m;
m.setRotate(degrees, px, py);
this->preConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 29, "lines_deleted": 0}} | null | null | static inline bool poly_to_point(SkPoint* pt, const SkPoint poly[], int count) {
float x = 1, y = 1;
SkPoint pt1, pt2;
if (count > 1) {
pt1.fX = poly[1].fX - poly[0].fX;
pt1.fY = poly[1].fY - poly[0].fY;
y = SkPoint::Length(pt1.fX, pt1.fY);
if (checkForZero(y)) {
... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 21, "lines_deleted": 0}} | null | null | bool SkMatrix::decomposeScale(SkSize* scale, SkMatrix* remaining) const {
if (this->hasPerspective()) {
return false;
}
const SkScalar sx = SkVector::Length(this->getScaleX(), this->getSkewY());
const SkScalar sy = SkVector::Length(this->getSkewX(), this->getScaleY());
if (!SkScalarIsFinite... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 28, "lines_deleted": 0}} | null | null | bool SkMatrix::isSimilarity(SkScalar tol) const {
// if identity or translate matrix
TypeMask mask = this->getType();
if (mask <= kTranslate_Mask) {
return true;
}
if (mask & kPerspective_Mask) {
return false;
}
SkScalar mx = fMat[kMScaleX];
SkScalar my = fMat[kMScaleY];... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::postRotate(SkScalar degrees, SkScalar px, SkScalar py) {
SkMatrix m;
m.setRotate(degrees, px, py);
this->postConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 9, "lines_deleted": 0}} | null | null | void SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
if (1 == sx && 1 == sy) {
return;
}
SkMatrix m;
m.setScale(sx, sy, px, py);
this->preConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 37, "lines_deleted": 0}} | null | null | int SkPerspIter::next() {
int n = fCount;
if (0 == n) {
return 0;
}
SkPoint pt;
SkFixed x = fX;
SkFixed y = fY;
SkFixed dx, dy;
if (n >= kCount) {
n = kCount;
fSX += SkIntToScalar(kCount);
SkMatrix::Persp_xy(fMatrix, fSX, fSY, &pt);
fX = SkScalar... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | bool SkMatrix::getMinMaxScales(SkScalar scaleFactors[2]) const {
return get_scale_factor<kBoth_MinMaxOrBoth>(this->getType(), fMat, scaleFactors);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::dump() const {
SkString str;
this->toString(&str);
SkDebugf("%s\n", str.c_str());
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | bool operator==(const SkMatrix& a, const SkMatrix& b) {
const SkScalar* SK_RESTRICT ma = a.fMat;
const SkScalar* SK_RESTRICT mb = b.fMat;
return ma[0] == mb[0] && ma[1] == mb[1] && ma[2] == mb[2] &&
ma[3] == mb[3] && ma[4] == mb[4] && ma[5] == mb[5] &&
ma[6] == mb[6] && ma[7] == mb... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 60, "lines_deleted": 0}} | null | null | uint8_t SkMatrix::computeTypeMask() const {
unsigned mask = 0;
if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) {
// Once it is determined that that this is a perspective transform,
// all other flags are moot as far as optimizations are concerned.
return SkToU8(kO... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::Identity_pts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
SkASSERT(m.getType() == 0);
if (dst != src && count > 0) {
memcpy(dst, src, count * sizeof(SkPoint));
}
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 50, "lines_deleted": 0}} | null | null | bool SkMatrix::setRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit align) {
if (src.isEmpty()) {
this->reset();
return false;
}
if (dst.isEmpty()) {
sk_bzero(fMat, 8 * sizeof(SkScalar));
fMat[kMPersp2] = 1;
this->setTypeMask(kScale_Mask | kRectStaysRect_Ma... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 27, "lines_deleted": 0}} | null | null | void SkMatrix::mapHomogeneousPoints(SkScalar dst[], const SkScalar src[], int count) const {
SkASSERT((dst && src && count > 0) || 0 == count);
// no partial overlap
SkASSERT(src == dst || &dst[3*count] <= &src[0] || &src[3*count] <= &dst[0]);
if (count > 0) {
if (this->isIdentity()) {
... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 4, "lines_deleted": 0}} | null | null | static inline SkScalar sdot(SkScalar a, SkScalar b, SkScalar c, SkScalar d,
SkScalar e, SkScalar f) {
return a * b + c * d + e * f;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 15, "lines_deleted": 0}} | null | null | void SkMatrix::postTranslate(SkScalar dx, SkScalar dy) {
if (!dx && !dy) {
return;
}
if (this->hasPerspective()) {
SkMatrix m;
m.setTranslate(dx, dy);
this->postConcat(m);
} else {
fMat[kMTransX] += dx;
fMat[kMTransY] += dy;
this->setTypeMask(k... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::preSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
SkMatrix m;
m.setSkew(sx, sy, px, py);
this->preConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline float muladdmul(float a, float b, float c, float d) {
return SkDoubleToFloat((double)a * b + (double)c * d);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::setRotate(SkScalar degrees, SkScalar px, SkScalar py) {
SkScalar sinV, cosV;
sinV = SkScalarSinCos(SkDegreesToRadians(degrees), &cosV);
this->setSinCos(sinV, cosV, px, py);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 78, "lines_deleted": 0}} | null | null | bool get_scale_factor(SkMatrix::TypeMask typeMask,
const SkScalar m[9],
SkScalar results[/*1 or 2*/]) {
if (typeMask & SkMatrix::kPerspective_Mask) {
return false;
}
if (SkMatr... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline SkScalar sdot(SkScalar a, SkScalar b, SkScalar c, SkScalar d) {
return a * b + c * d;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline float SkDoubleToFloat(double x) {
return static_cast<float>(x);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 18, "lines_deleted": 0}} | null | null | bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst,
const SkPoint& scale) {
float invScale = 1 / scale.fX;
dst->fMat[kMScaleX] = (srcPt[2].fX - srcPt[0].fX) * invScale;
dst->fMat[kMSkewY] = (srcPt[2].fY - srcPt[0].fY) * invScale;
dst->fMat[kMPersp0] = 0;
invScale... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::postConcat(const SkMatrix& mat) {
// check for identity first, so we don't do a needless copy of ourselves
// to ourselves inside setConcat()
if (!mat.isIdentity()) {
this->setConcat(mat, *this);
}
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline SkScalar scross(SkScalar a, SkScalar b, SkScalar c, SkScalar d) {
return a * b - c * d;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 29, "lines_deleted": 0}} | null | null | void SkMatrix::Affine_vpts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
SkASSERT(m.getType() != kPerspective_Mask);
if (count > 0) {
SkScalar tx = m.getTranslateX();
SkScalar ty = m.getTranslateY();
SkScalar sx = m.getScaleX();
SkScalar sy = m.getScaleY();... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline float rowcol3(const float row[], const float col[]) {
return row[0] * col[0] + row[1] * col[3] + row[2] * col[6];
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | void SkMatrix::setTranslate(SkScalar dx, SkScalar dy) {
if (dx || dy) {
fMat[kMTransX] = dx;
fMat[kMTransY] = dy;
fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1;
fMat[kMSkewX] = fMat[kMSkewY] =
fMat[kMPersp0] = fMat[kMPersp1] = 0;
this->setTypeMask(kTranslate... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | void SkMatrix::setSkew(SkScalar sx, SkScalar sy) {
fMat[kMScaleX] = 1;
fMat[kMSkewX] = sx;
fMat[kMTransX] = 0;
fMat[kMSkewY] = sy;
fMat[kMScaleY] = 1;
fMat[kMTransY] = 0;
fMat[kMPersp0] = fMat[kMPersp1] = 0;
fMat[kMPersp2] = 1;
this->setTypeMask(kUnknown_Mask | kOnlyPerspe... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::postSkew(SkScalar sx, SkScalar sy) {
SkMatrix m;
m.setSkew(sx, sy);
this->postConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 12, "lines_deleted": 0}} | null | null | void SkMatrix::setAffine(const SkScalar buffer[]) {
fMat[kMScaleX] = buffer[kAScaleX];
fMat[kMSkewX] = buffer[kASkewX];
fMat[kMTransX] = buffer[kATransX];
fMat[kMSkewY] = buffer[kASkewY];
fMat[kMScaleY] = buffer[kAScaleY];
fMat[kMTransY] = buffer[kATransY];
fMat[kMPersp0] = 0;
fMat[kMP... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | void SkMatrix::SetAffineIdentity(SkScalar affine[6]) {
affine[kAScaleX] = 1;
affine[kASkewY] = 0;
affine[kASkewX] = 0;
affine[kAScaleY] = 1;
affine[kATransX] = 0;
affine[kATransY] = 0;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 19, "lines_deleted": 0}} | null | null | bool SkMatrix::postIDiv(int divx, int divy) {
if (divx == 0 || divy == 0) {
return false;
}
const float invX = 1.f / divx;
const float invY = 1.f / divy;
fMat[kMScaleX] *= invX;
fMat[kMSkewX] *= invX;
fMat[kMTransX] *= invX;
fMat[kMScaleY] *= invY;
fMat[kMSkewY] *= invY;... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | SkPerspIter::SkPerspIter(const SkMatrix& m, SkScalar x0, SkScalar y0, int count)
: fMatrix(m), fSX(x0), fSY(y0), fCount(count) {
SkPoint pt;
SkMatrix::Persp_xy(m, x0, y0, &pt);
fX = SkScalarToFixed(pt.fX);
fY = SkScalarToFixed(pt.fY);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | void SkMatrix::postScale(SkScalar sx, SkScalar sy) {
if (1 == sx && 1 == sy) {
return;
}
SkMatrix m;
m.setScale(sx, sy);
this->postConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 20, "lines_deleted": 0}} | null | null | void SkMatrix::preScale(SkScalar sx, SkScalar sy) {
if (1 == sx && 1 == sy) {
return;
}
// the assumption is that these multiplies are very cheap, and that
// a full concat and/or just computing the matrix type is more expensive.
// Also, the fixed-point case checks for overflow, but the fl... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 15, "lines_deleted": 0}} | null | null | void SkMatrix::setScale(SkScalar sx, SkScalar sy) {
if (1 == sx && 1 == sy) {
this->reset();
} else {
fMat[kMScaleX] = sx;
fMat[kMScaleY] = sy;
fMat[kMPersp2] = 1;
fMat[kMTransX] = fMat[kMTransY] =
fMat[kMSkewX] = fMat[kMSkewY] =
fMat[kMPersp0] = fMat[kM... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static bool only_scale_and_translate(unsigned mask) {
return 0 == (mask & (SkMatrix::kAffine_Mask | SkMatrix::kPerspective_Mask));
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 25, "lines_deleted": 0}} | null | null | bool SkMatrix::fixedStepInX(SkScalar y, SkFixed* stepX, SkFixed* stepY) const {
if (PerspNearlyZero(fMat[kMPersp0])) {
if (stepX || stepY) {
if (PerspNearlyZero(fMat[kMPersp1]) &&
PerspNearlyZero(fMat[kMPersp2] - 1)) {
if (stepX) {
*stepX =... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 22, "lines_deleted": 0}} | null | null | static void normalize_perspective(SkScalar mat[9]) {
// If it was interesting to never store the last element, we could divide all 8 other
// elements here by the 9th, making it 1.0...
//
// When SkScalar was SkFixed, we would sometimes rescale the entire matrix to keep its
// component values from ... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::preRotate(SkScalar degrees) {
SkMatrix m;
m.setRotate(degrees);
this->preConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 10, "lines_deleted": 0}} | null | null | void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT((m.getType() & (kScale_Mask | kAffine_Mask | kPerspective_Mask))
== kScale_Mask);
SkASSERT(0 == m.fMat[kMTransX]);
SkASSERT(0 == m.fMat[kMTransY]);
pt->fX = sx * m.fMat[kMSc... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | void SkMatrix::postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
if (1 == sx && 1 == sy) {
return;
}
SkMatrix m;
m.setScale(sx, sy, px, py);
this->postConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT(m.getType() == kTranslate_Mask);
pt->fX = sx + m.fMat[kMTransX];
pt->fY = sy + m.fMat[kMTransY];
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 16, "lines_deleted": 0}} | null | null | bool SkMatrix::mapRect(SkRect* dst, const SkRect& src) const {
SkASSERT(dst);
if (this->rectStaysRect()) {
this->mapPoints((SkPoint*)dst, (const SkPoint*)&src, 2);
dst->sort();
return true;
} else {
SkPoint quad[4];
src.toQuad(quad);
this->mapPoints(quad, qu... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 70, "lines_deleted": 0}} | null | null | void SkMatrix::setConcat(const SkMatrix& a, const SkMatrix& b) {
TypeMask aType = a.getType();
TypeMask bType = b.getType();
if (a.isTriviallyIdentity()) {
*this = b;
} else if (b.isTriviallyIdentity()) {
*this = a;
} else if (only_scale_and_translate(aType | bType)) {
this-... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 31, "lines_deleted": 0}} | null | null | void SkMatrix::Scale_pts(const SkMatrix& m, SkPoint dst[], const SkPoint src[], int count) {
SkASSERT(m.getType() <= (kScale_Mask | kTranslate_Mask));
if (count > 0) {
SkScalar tx = m.getTranslateX();
SkScalar ty = m.getTranslateY();
SkScalar sx = m.getScaleX();
SkScalar sy = m.... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 8, "lines_deleted": 0}} | null | null | SkScalar SkMatrix::getMaxScale() const {
SkScalar factor;
if (get_scale_factor<kMax_MinMaxOrBoth>(this->getType(), fMat, &factor)) {
return factor;
} else {
return -1;
}
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 94, "lines_deleted": 0}} | null | null | bool SkDecomposeUpper2x2(const SkMatrix& matrix,
SkPoint* rotation1,
SkPoint* scale,
SkPoint* rotation2) {
SkScalar A = matrix[SkMatrix::kMScaleX];
SkScalar B = matrix[SkMatrix::kMSkewX];
SkScalar C = matrix[SkMatrix::kMSkewY];
... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 13, "lines_deleted": 0}} | null | null | SkScalar SkMatrix::mapRadius(SkScalar radius) const {
SkVector vec[2];
vec[0].set(radius, 0);
vec[1].set(0, radius);
this->mapVectors(vec, 2);
SkScalar d0 = vec[0].length();
SkScalar d1 = vec[1].length();
// return geometric mean
return SkScalarSqrt(d0 * d1);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::preConcat(const SkMatrix& mat) {
// check for identity first, so we don't do a needless copy of ourselves
// to ourselves inside setConcat()
if(!mat.isIdentity()) {
this->setConcat(*this, mat);
}
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::postRotate(SkScalar degrees) {
SkMatrix m;
m.setRotate(degrees);
this->postConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::reset() {
fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1;
fMat[kMSkewX] = fMat[kMSkewY] =
fMat[kMTransX] = fMat[kMTransY] =
fMat[kMPersp0] = fMat[kMPersp1] = 0;
this->setTypeMask(kIdentity_Mask | kRectStaysRect_Mask);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline bool checkForZero(float x) {
return x*x == 0;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | static inline bool is_degenerate_2x2(SkScalar scaleX, SkScalar skewX,
SkScalar skewY, SkScalar scaleY) {
SkScalar perp_dot = scaleX*scaleY - skewX*skewY;
return SkScalarNearlyZero(perp_dot, SK_ScalarNearlyZero*SK_ScalarNearlyZero);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
if (1 == sx && 1 == sy) {
this->reset();
} else {
this->setScaleTranslate(sx, sy, px - sx * px, py - sy * py);
}
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 4, "lines_deleted": 0}} | null | null | static inline SkScalar scross_dscale(SkScalar a, SkScalar b,
SkScalar c, SkScalar d, double scale) {
return SkDoubleToScalar(scross(a, b, c, d) * scale);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | bool SkMatrix::asAffine(SkScalar affine[6]) const {
if (this->hasPerspective()) {
return false;
}
if (affine) {
affine[kAScaleX] = this->fMat[kMScaleX];
affine[kASkewY] = this->fMat[kMSkewY];
affine[kASkewX] = this->fMat[kMSkewX];
affine[kAScaleY] = this->fMat[kMScale... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 27, "lines_deleted": 0}} | null | null | void SkMatrix::Persp_pts(const SkMatrix& m, SkPoint dst[],
const SkPoint src[], int count) {
SkASSERT(m.hasPerspective());
if (count > 0) {
do {
SkScalar sy = src->fY;
SkScalar sx = src->fX;
src += 1;
SkScalar x = sdot(sx, m.fMat... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
SkPoint* pt) {
SkASSERT(0 == m.getType());
pt->fX = sx;
pt->fY = sy;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 16, "lines_deleted": 0}} | null | null | bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst,
const SkPoint& scale) {
float invScale = 1 / scale.fY;
dst->fMat[kMScaleX] = (srcPt[1].fY - srcPt[0].fY) * invScale;
dst->fMat[kMSkewY] = (srcPt[0].fX - srcPt[1].fX) * invScale;
dst->fMat[kMPersp0] = 0;
dst->fMa... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 11, "lines_deleted": 0}} | null | null | size_t SkMatrix::readFromMemory(const void* buffer, size_t length) {
static const size_t sizeInMemory = 9 * sizeof(SkScalar);
if (length < sizeInMemory) {
return 0;
}
if (buffer) {
memcpy(fMat, buffer, sizeInMemory);
this->setTypeMask(kUnknown_Mask);
}
return sizeInMemory... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 47, "lines_deleted": 0}} | null | null | bool SkTreatAsSprite(const SkMatrix& mat, int width, int height,
unsigned subpixelBits) {
// quick reject on affine or perspective
if (mat.getType() & ~(SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask)) {
return false;
}
// quick success check
if (!subpixelBits && !(m... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 14, "lines_deleted": 0}} | null | null | void SkMatrix::setSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
fMat[kMScaleX] = 1;
fMat[kMSkewX] = sx;
fMat[kMTransX] = -sx * py;
fMat[kMSkewY] = sy;
fMat[kMScaleY] = 1;
fMat[kMTransY] = -sy * px;
fMat[kMPersp0] = fMat[kMPersp1] = 0;
fMat[kMPersp2] = 1;
this-... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 3, "lines_deleted": 0}} | null | null | static inline double dcross(double a, double b, double c, double d) {
return a * b - c * d;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::setRotate(SkScalar degrees) {
SkScalar sinV, cosV;
sinV = SkScalarSinCos(SkDegreesToRadians(degrees), &cosV);
this->setSinCos(sinV, cosV);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 5, "lines_deleted": 0}} | null | null | void SkMatrix::postSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
SkMatrix m;
m.setSkew(sx, sy, px, py);
this->postConcat(m);
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 21, "lines_deleted": 0}} | null | null | void SkMatrix::mapVectors(SkPoint dst[], const SkPoint src[], int count) const {
if (this->hasPerspective()) {
SkPoint origin;
MapXYProc proc = this->getMapXYProc();
proc(*this, 0, 0, &origin);
for (int i = count - 1; i >= 0; --i) {
SkPoint tmp;
proc(*this,... | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 7, "lines_deleted": 0}} | null | null | bool SkMatrix::setIDiv(int divx, int divy) {
if (!divx || !divy) {
return false;
}
this->setScale(SkScalarInvert(divx), SkScalarInvert(divy));
return true;
} | [] | ||
CVE-2015-1294 | f58926ef34660d6770a791e0b01922a373a0d7c3 | https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96 | Vulnerability in CVE-2015-1294 | null | null | null | null | CWE-Other | Fix CVE-2015-1294 | null | null | null | null | ["src/core/SkMatrix.cpp"] | C++ | {"src/core/SkMatrix.cpp": {"lines_added": 29, "lines_deleted": 0}} | null | null | bool SkMatrix::preservesRightAngles(SkScalar tol) const {
TypeMask mask = this->getType();
if (mask <= kTranslate_Mask) {
// identity, translate and/or scale
return true;
}
if (mask & kPerspective_Mask) {
return false;
}
SkASSERT(mask & (kAffine_Mask | kScale_Mask));
... | [] |
Subsets and Splits
Megavul Vulnerable vs Fixed Code Pairs
Identifies specific code changes between vulnerable and fixed versions, revealing patterns in how bugs are corrected and potentially uncovering common vulnerability types and their fixes.
Vulnerable Code Count
Identifies the number of code examples where both vulnerable and fixed code are present and different, providing valuable insight into the dataset's repair quality and scope of code transformations needed.
Find Code Differences
The query retrieves rows where the vulnerable code is different from the fixed code or where either is null, providing basic filtering for code differences but limited analytical value.
SQL Console for hitoshura25/megavul
The query retrieves rows where the vulnerable code and fixed code do not match or are missing, providing basic filtering but limited analytical value.