We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c78293 commit 0b75a57Copy full SHA for 0b75a57
binding.gyp
@@ -23,13 +23,14 @@
23
"VCCLCompilerTool": {
24
"AdditionalOptions": [
25
"/guard:cf",
26
- "/w34244",
27
- "/we4267",
+ "/sdl",
+ "/W3",
28
"/ZH:SHA_256"
29
]
30
},
31
"VCLinkerTool": {
32
33
+ "/DYNAMICBASE",
34
"/guard:cf"
35
36
}
src/statement.h
@@ -52,7 +52,9 @@ namespace Values {
52
template <class T> inline Blob(T _name, size_t len, const void* val) :
53
Field(_name, SQLITE_BLOB), length(len) {
54
value = (char*)malloc(len);
55
- memcpy(value, val, len);
+ if (value) {
56
+ memcpy(value, val, len);
57
+ }
58
59
inline ~Blob() {
60
free(value);
0 commit comments