Commit c4e99d8b authored by sotaro's avatar sotaro
Browse files

Bug 1790169 - Add buffer size check to DrawTargetWebgl::Init() r=lsalzman

parent 7df6a78a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -341,6 +341,10 @@ bool DrawTargetWebgl::Init(const IntSize& size, const SurfaceFormat format) {
  mSize = size;
  mFormat = format;

  if (!Factory::AllowedSurfaceSize(size)) {
    return false;
  }

  if (!sSharedContext.init()) {
    return false;
  }