You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reported this to secure@microsoft.com (per your explicit request to report potential security bugs there, I personally don't care), but they don't understand what I'm talking about.
The problem is that you don't perform the necessary casting:
/mnt/2tb/cf-symcrypt/SymCrypt/lib/3des.c:207:10: runtimeerror: leftshiftof241by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/3des.c:208:10: runtimeerror: leftshiftof253by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/3des.c:366:9: runtimeerror: leftshiftof225by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/3des.c:367:9: runtimeerror: leftshiftof236by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/3des.c:486:9: runtimeerror: leftshiftof187by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/3des.c:487:9: runtimeerror: leftshiftof232by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:206:64: runtimeerror: leftshiftof204by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:212:65: runtimeerror: leftshiftof150by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:218:65: runtimeerror: leftshiftof160by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:224:65: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:327:51: runtimeerror: leftshiftof247by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:333:52: runtimeerror: leftshiftof167by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:339:52: runtimeerror: leftshiftof144by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-c.c:345:52: runtimeerror: leftshiftof185by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:122:17: runtimeerror: leftshiftof216by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:122:57: runtimeerror: leftshiftof212by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:153:17: runtimeerror: leftshiftof129by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:153:57: runtimeerror: leftshiftof207by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:173:13: runtimeerror: leftshiftof226by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:173:53: runtimeerror: leftshiftof156by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:93:17: runtimeerror: leftshiftof251by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aes-key.c:93:57: runtimeerror: leftshiftof201by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/aescmac.c:193:47: runtimeerror: nullpointerpassedasargument2, whichisdeclaredtoneverbenull
/mnt/2tb/cf-symcrypt/SymCrypt/lib/blockciphermodes.c:296:9: runtimeerror: leftshiftof163by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/blockciphermodes.c:296:9: runtimeerror: leftshiftof250by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:220:9: runtimeerror: leftshiftof192by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:221:9: runtimeerror: leftshiftof167by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:222:9: runtimeerror: leftshiftof141by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:223:9: runtimeerror: leftshiftof164by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:224:9: runtimeerror: leftshiftof166by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:225:9: runtimeerror: leftshiftof143by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:226:9: runtimeerror: leftshiftof191by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:227:9: runtimeerror: leftshiftof135by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:228:9: runtimeerror: leftshiftof232by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:229:9: runtimeerror: leftshiftof189by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:230:9: runtimeerror: leftshiftof217by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:231:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:232:9: runtimeerror: leftshiftof237by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:233:9: runtimeerror: leftshiftof201by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:234:9: runtimeerror: leftshiftof145by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/chacha20.c:235:9: runtimeerror: leftshiftof249by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/gcm.c:246:14: runtimeerror: leftshiftof220by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/ghash.c:47:10: runtimeerror: leftshiftof147by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/ghash.c:47:10: runtimeerror: leftshiftof210by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/ghash.c:48:10: runtimeerror: leftshiftof140by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/ghash.c:48:10: runtimeerror: leftshiftof236by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/ghash.c:96:17: runtimeerror: leftshiftof133by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/hkdf.c:114:12: runtimeerror: nullpointerpassedasargument1, whichisdeclaredtoneverbenull
/mnt/2tb/cf-symcrypt/SymCrypt/lib/hmac_pattern.c:63:25: runtimeerror: nullpointerpassedasargument2, whichisdeclaredtoneverbenull
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:255:9: runtimeerror: leftshiftof234by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:256:9: runtimeerror: leftshiftof155by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:257:9: runtimeerror: leftshiftof170by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:258:9: runtimeerror: leftshiftof145by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:259:9: runtimeerror: leftshiftof234by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:260:9: runtimeerror: leftshiftof163by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:261:9: runtimeerror: leftshiftof147by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:262:9: runtimeerror: leftshiftof134by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:263:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:264:9: runtimeerror: leftshiftof154by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:265:9: runtimeerror: leftshiftof246by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:266:9: runtimeerror: leftshiftof154by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:267:9: runtimeerror: leftshiftof215by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:268:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:269:9: runtimeerror: leftshiftof223by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md4.c:270:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:316:9: runtimeerror: leftshiftof251by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:317:9: runtimeerror: leftshiftof214by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:318:9: runtimeerror: leftshiftof186by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:319:9: runtimeerror: leftshiftof142by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:320:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:321:9: runtimeerror: leftshiftof133by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:322:9: runtimeerror: leftshiftof225by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:323:9: runtimeerror: leftshiftof254by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:324:9: runtimeerror: leftshiftof212by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:325:9: runtimeerror: leftshiftof229by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:326:9: runtimeerror: leftshiftof251by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:327:9: runtimeerror: leftshiftof254by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:328:9: runtimeerror: leftshiftof203by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:329:9: runtimeerror: leftshiftof229by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:330:9: runtimeerror: leftshiftof237by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/md5.c:331:9: runtimeerror: leftshiftof186by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sc_lib.h:424:21: runtimeerror: leftshiftof194by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:252:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:253:9: runtimeerror: leftshiftof180by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:254:9: runtimeerror: leftshiftof236by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:255:9: runtimeerror: leftshiftof142by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:256:9: runtimeerror: leftshiftof154by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:257:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:258:9: runtimeerror: leftshiftof200by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:259:9: runtimeerror: leftshiftof189by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:260:9: runtimeerror: leftshiftof253by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:261:9: runtimeerror: leftshiftof226by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:262:9: runtimeerror: leftshiftof132by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:263:9: runtimeerror: leftshiftof200by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:264:9: runtimeerror: leftshiftof227by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:265:9: runtimeerror: leftshiftof253by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:266:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha1.c:267:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:596:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:597:9: runtimeerror: leftshiftof237by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:598:9: runtimeerror: leftshiftof168by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:599:9: runtimeerror: leftshiftof242by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:600:9: runtimeerror: leftshiftof176by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:601:9: runtimeerror: leftshiftof165by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:602:9: runtimeerror: leftshiftof240by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:603:9: runtimeerror: leftshiftof240by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:604:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:605:9: runtimeerror: leftshiftof134by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:606:9: runtimeerror: leftshiftof178by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:607:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:608:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:609:9: runtimeerror: leftshiftof148by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:610:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha256.c:611:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:657:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:657:9: runtimeerror: leftshiftof201by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:658:9: runtimeerror: leftshiftof213by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:658:9: runtimeerror: leftshiftof226by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:659:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:659:9: runtimeerror: leftshiftof189by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:660:9: runtimeerror: leftshiftof141by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:660:9: runtimeerror: leftshiftof232by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:661:9: runtimeerror: leftshiftof151by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:661:9: runtimeerror: leftshiftof252by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:662:9: runtimeerror: leftshiftof158by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:662:9: runtimeerror: leftshiftof171by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:663:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:663:9: runtimeerror: leftshiftof200by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:664:9: runtimeerror: leftshiftof180by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:664:9: runtimeerror: leftshiftof254by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:665:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:666:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:666:9: runtimeerror: leftshiftof212by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:667:9: runtimeerror: leftshiftof253by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:667:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:668:9: runtimeerror: leftshiftof212by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:669:9: runtimeerror: leftshiftof154by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:669:9: runtimeerror: leftshiftof255by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:670:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:670:9: runtimeerror: leftshiftof159by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:671:9: runtimeerror: leftshiftof128by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:671:9: runtimeerror: leftshiftof133by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:672:9: runtimeerror: leftshiftof147by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/sha512.c:672:9: runtimeerror: leftshiftof236by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/tlsprf.c:334:19: runtimeerror: nullpointerpassedasargument2, whichisdeclaredtoneverbenull
/mnt/2tb/cf-symcrypt/SymCrypt/lib/tlsprf.c:336:19: runtimeerror: nullpointerpassedasargument2, whichisdeclaredtoneverbenull
/mnt/2tb/cf-symcrypt/SymCrypt/lib/xtsaes.c:784:17: runtimeerror: leftshiftof224by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/xtsaes.c:784:17: runtimeerror: leftshiftof244by24placescannotberepresentedintype 'int'
/mnt/2tb/cf-symcrypt/SymCrypt/lib/xtsaes.c:785:17: runtimeerror: leftshiftof225by24placescannotberepresentedintype 'int'
The text was updated successfully, but these errors were encountered:
Thank you for this report. This is not a security issue, which is probably why the people at secure@microsoft.com<mailto:secure@microsoft.com> didn’t know what to do.
Looking at the specs of the C language, I see that the byte value is promoted to an int, and the left shift by 24 of a byte value >= 128 makes the value larger than can be represented in a signed int, it would need an unsigned int. In fact, C only guarantees that int is 16 bits long, so this code is even more flawed.
The right fix will be to insert casts to UINT32; the shift operations are well-defined on unsigned 32-bit values.
I don’t think this is urgent, so I’ll fix it the next time I’m changing things.
Thanks again,
Niels
I reported this to secure@microsoft.com (per your explicit request to report potential security bugs there, I personally don't care), but they don't understand what I'm talking about.
The problem is that you don't perform the necessary casting:
SymCrypt/inc/symcrypt_internal.h
Line 524 in 263e3e6
The text was updated successfully, but these errors were encountered: