Jump to content

Strange False Positive


Recommended Posts

Posted

this one 

Quote

#include <iostream>

using namespace std; 

void reverseArray(int* start, int* end) {
    // Votre code ici pour inverser le tableau en utilisant les pointeurs `start` et `end`
    *start = *end; 
    *(start + 1) = *(end - 1); 

    for (auto i = start; i < end; i++)
    {
        cout << "ligne numéros " << i << "\n"; 

    }
}

int main() {
    int array[] = { 1, 2, 3, 4, 5 };
    int n = sizeof(array) / sizeof(array[0]);

    // Appel de la fonction pour inverser le tableau
    reverseArray(array, array + n - 1);

    // Affichage du tableau inversé
    for (int* ptr = array; ptr < array + n; ++ptr) {
        std::cout << *ptr << " ";
    }
    std::cout << std::endl;

    return 0;

}

 

start a false positive with Kasperky free ? that's insane 

Posted

Welcome to Kaspersky Community.

 

Please check this link:

 

Posted

i cannot report a false positive with the free AV ..

anyway when i format the code like this 
 


void reverseArray(int* start, int* end) {
    int* temp = new int[end - start + 1]; // Crée un tableau temporaire pour stocker les éléments inversés.
    int* tempPtr = temp; // Un pointeur pour parcourir le tableau temporaire.

    // Copie les éléments de 'end' à 'start' dans le tableau temporaire.
    for (auto i = end; i >= start; i--) {
        *tempPtr = *i;
        tempPtr++;
    }

    tempPtr = temp; // Réinitialise le pointeur temporaire au début du tableau temporaire.

    // Copie les éléments du tableau temporaire de retour dans le tableau original.
    for (auto i = start; i <= end; i++) {
        *i = *tempPtr;
        tempPtr++;
    }

    delete[] temp; // Libère la mémoire allouée pour le tableau temporaire.
}


Kasperky don't complain anymore ..  BUT if you have information about why Kasperky complain probably my first code mimic a real virus .. but its light to mimic just bad formated code cannot produce an alert 

Posted

Hum 🤔 why can't You report a false positive with KFree? there is no limitation here about it...

Posted

sure it was .. as you can see kaspersy free Av the next box rest in gray 
image.thumb.png.b4bc216d5f9e6c82801467991bdee0c8.png

  • Like 1
Posted

Ah ok, I meant via KOTIP

 

Doing via K. Support, but try selecting KIS, since it is a false positive, it will affect to all home products as well 🙂

Posted


i already submit via the KOTIP but i probably stop before he finish to scan because i don't rememebr the result 😁

in virus total  kasperky took the file as a virus .. 

anyway i probably re-upload my "virus" but i will never had my answer,  "witch pattern trigger kasperky alarm" . 

when you try to attach to a process or maybe find a hook or something i understand but this piece of code ?? 

anyway thanks 

ps : the best solution its to create some folder who can't be scanned by kasperky 

  • Like 1

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...