Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crap code
Message
De
19/04/2021 02:52:33
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
18/04/2021 16:18:27
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01679827
Message ID:
01679891
Vues:
59
>>
wMessBody = wMessBody + CHR(13) + ALLTRIM(STR(ScanGrL.OrdNmb))
>>
>
>>>Do not forget comparing with literal containing chr(13) -- 0h0D. Finally there is no need to call a function or store something to a variable what is a clear literal.
>
>I need to check how the VFP pcode / IL stores chr(13) - if it's passing "13" to the interpreter then there's a bit of overhead there.
>
>This is fairly esoteric stuff though, since one of the VFP C++ Compiler obfuscation techniques involves making simple equations far more complex and introducing math. E.g. chr(13) might become chr(1003+47-1037) so a hacker can't just search for chr(13). The string "Hello" can be converted to a series of similar chr() concatenations for the same reason- yet impact on performance is negligible unless there's a huge looping construct.

Do you not think that such a kind of obfuscation only need some code to resolve it? Looks like security by obscurity.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform