Questions tagged [self-modifying]

Self-modifying code is a piece of software which achieves its goal by rewriting itself as it goes along. Use this tag for questions related to self-modifying code, such as the writing and running of such codes in different languages, use cases and its detection.

Self-modifying code is a piece of software which achieves its goal by rewriting itself as it goes along. Use this tag for questions related to self-modifying code, such as the writing and running of such codes in different languages, use cases and its detection.

156 questions
-2
votes
1 answer

Change from MOV instructions to ADD or SUB instructions

I want to change from mov instructions to SUB instructions (I think ,we can also change to ADD instructions) and I want to adjust the values so that the function of the entire program remains unchanged. for_real_programmers: mov dx, 0 ; …
-2
votes
2 answers

Compile time function encryption

I was wondering if something like compile time function encryption is possible and if it's possible how can someone achieve it ? And by "compile time function encryption" I mean encrypting the function code during compile time and later on at…
bogding
  • 11
  • 1
-2
votes
1 answer

self-modifying under windows issue overwrite

I am writting a self-mutation code , and its original value before overwrite is 1,but after the overwrite should be 42. I think I am missing some aspecs because I got 1 on both original and mutation overwrite. my complete code looks like this gist…
yesii_0691
  • 23
  • 7
-2
votes
1 answer

Controlling the display of things typed in text input (with JS)?

Is there a way to change the display of a text input with JS? for example: I input in a text field input: "help please" and i want it do be displayed directly as it is typed (within the text input as: "help ******" So just the second word will be…
-2
votes
1 answer

Modify the vector class in STL c++, is this possible?

I would like to modify a member function of the vector class. Is this possible? For example I would like to be able to delete with respect to value, and not the integer of the vector.
Matias
  • 3
  • 2
-4
votes
2 answers

Remove null check after lazy initialization

When one decides to use lazy initialization, he usually has to pay for it. class Loafer { private VeryExpensiveField field; private VeryExpensiveField LazyInitField() { field = new VeryExpensiveField(); // I wanna here…
Danatela
  • 349
  • 8
  • 28
1 2 3
10
11