Subversion Repositories filter_foundry

Rev

Rev 510 | Rev 528 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 510 Rev 526
Line 78... Line 78...
78
                }
78
                }
79
                return addr == NULL ? 0 : *addr;
79
                return addr == NULL ? 0 : *addr;
80
        }
80
        }
81
        #endif
81
        #endif
82
#else
82
#else
83
        // Unfortunately, with this compiler, we the value needs to be in the .data segment...
83
        // Unfortunately, with this compiler, we don't know how to force the seed into the .code segment.
-
 
84
        // So, we put it in the .data segment.
84
        // Due to "const volatile", this value will only exist a single time in the binary file.
85
        // Note: Due to "const volatile", this value will only exist a single time in the binary file.
85
        const volatile uint64_t obfusc_seed = 0x7416972a52830517ull;
86
        const volatile uint64_t obfusc_seed = 0x7416972a52830517ull;
86
        uint64_t GetObfuscSeed() {
87
        uint64_t GetObfuscSeed() {
87
                return obfusc_seed;
88
                return obfusc_seed;
88
        }
89
        }
89
#endif
90
#endif
Line 347... Line 348...
347
        else if ((obfusc_info >= 4) && (obfusc_info <= 0xFF)) { // xx 00 00 00
348
        else if ((obfusc_info >= 4) && (obfusc_info <= 0xFF)) { // xx 00 00 00
348
                // Version 4 obfuscation (Filter Foundry 1.7.0.7)
349
                // Version 4 obfuscation (Filter Foundry 1.7.0.7)
349
                // Version 5 obfuscation (Filter Foundry 1.7.0.8)
350
                // Version 5 obfuscation (Filter Foundry 1.7.0.8)
350
                // Version 6 obfuscation (Filter Foundry 1.7.0.10)
351
                // Version 6 obfuscation (Filter Foundry 1.7.0.10)
351
                // Version 7 obfuscation (Filter Foundry 1.7.0.17)
352
                // Version 7 obfuscation (Filter Foundry 1.7.0.17)
352
                // Future: Version 8, ... 255
353
                // Future: Version 8, 9, ..., 255
353
                return obfusc_info;
354
                return obfusc_info;
354
        }
355
        }
355
        else {
356
        else {
356
                // Version 3 obfuscation (Filter Foundry 1.7.0.5)
357
                // Version 3 obfuscation (Filter Foundry 1.7.0.5)
357
                // obfusc_info is the srand() seed and is equal to the time(0) build timestamp
358
                // obfusc_info is the srand() seed and is equal to the time(0) build timestamp