Menu
  • HOME
  • TAGS

Is this code really undefined, as Clang seems to indicate?

c++,clang,undefined-behavior,libstdc++,sanitizer

This is a bug in libstdc++, from the cfe-dev mailing list thread with title -fsanitize=undefined and shared libraries says: This is a bug in libstdc++. You will be able to work around it with a sanitizer blacklist file, once Will's patch for that lands, but for now, filtering them out...

Gcc thread sanitizer false positive only for debug info flag

c++,c++11,gcc,sanitizer,thread-sanitizer

You mean this bug? It was reported for 4.8, but a similar report exists for 4.9.2.

how to sanitize an array of object in node? Iterating through it manually returns 'object Object'

javascript,html,node.js,xss,sanitizer

Something like this should do the trick: var fun = []; for(var i = 0; i < msg.length; i++){ // Don't use for...in to iterate over an array. fun[i] = msg[i]; // Copy the current object. for(var j in fun[i]){ // Iterate over the properties in this object. fun[i][j] =...