2 ms·
This tangentially reminds me of when I used to work on some commercial software which linked against a FlexLM binary blob for licence checking. We had a custome
by komadori 5y ago
This tangentially reminds me of when I used to work on some commercial software which linked against a FlexLM binary blob for licence checking. We had a customer bug report where the software was occasionally crashing on start up on 64-bit Windows and it turned out to be happening in the licence checking code.
I disassembled the blob and it turned out that it was down-casting a NT handle to 32-bits. This seemed to be fine in practice as I never observed the higher bits set. Unfortunately however, the code then used a signed load to read it in from memory and hence corrupted the handle if the 32nd bit was set, causing a crash.
I made a patched blob which fixed the problem but sadly the legal department vetoed shipping it in case it violated our license with Flex :-P.