Skip to content

Commit

Permalink
fixed invalid memrory read/write
Browse files Browse the repository at this point in the history
  • Loading branch information
thqby committed Apr 12, 2022
1 parent ba0e08c commit 3680c4e
Show file tree
Hide file tree
Showing 5 changed files with 307 additions and 303 deletions.
2 changes: 2 additions & 0 deletions opencv_ahk/cv_ahk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "cvobj.h"

IAhkApi* g_ahkapi = nullptr;
ExprTokenType g_invalid[1] = {};
ExprTokenType* g_invalidparam[1] = { g_invalid };

FuncEntry CV_Funcs[] = {
BIFn(CamShift, 3, 3, CV_FUNC),
Expand Down
4 changes: 3 additions & 1 deletion opencv_ahk/cv_ahk.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@
#include <opencv2/gapi/infer/bindings_ie.hpp>
#include <ahkapi.h>

extern IAhkApi* g_ahkapi;
extern IAhkApi* g_ahkapi;
extern ExprTokenType g_invalid[1];
extern ExprTokenType* g_invalidparam[1];
Loading

0 comments on commit 3680c4e

Please sign in to comment.