×

Memory storage device and memory controller and virus scanning method thereof

  • US 8,561,194 B2
  • Filed: 05/17/2011
  • Issued: 10/15/2013
  • Est. Priority Date: 03/15/2011
  • Status: Active Grant
First Claim
Patent Images

1. A virus scanning method, adapted to a memory storage device coupled to a host system, wherein the memory storage device comprises a rewritable non-volatile memory chip, the rewritable non-volatile memory chip has a plurality of physical blocks, and each of the physical blocks has a plurality of physical addresses, the virus scanning method comprising:

  • providing a virus signature database, wherein the virus signature database records at least one predetermined file segment and at least one virus signature corresponding to the at least one predetermined file segment;

    configuring a plurality of logical addresses to be mapped to a part of the physical addresses, wherein the host system accesses the logical addresses by using a file system, and the file system comprises a file allocation table (FAT);

    receiving at least one binary code, wherein the at least one binary code comprises a binary code to be written by the host system or a binary code to be read by the host system and corresponding to an excess address range;

    analyzing the FAT to identify a file segment containing the at least one binary code;

    identifying the file segment containing the at least one binary code in a logical address linked list;

    determining whether the file segment matches any one of the at least one predetermined file segment;

    when the file segment matches one of the at least one predetermined file segment, determining whether the at least one binary code matches any one of the at least one virus signature corresponding to the matched predetermined file segment; and

    when the at least one binary code matches one of the at least one virus signature corresponding to the matched predetermined file segment, not writing the at least one binary code into the memory storage device or not transmitting the at least one binary code back to the host system.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×