Skip to content
  • Mahfuzur Rahman Mamun's avatar
    Fix crashes · d7576a6a
    Mahfuzur Rahman Mamun authored
    1. I replaced the previous fixed memory array with dynamic memory allocation
    (line 18-20).
    2. Put some extra check so that we do not access under or over the boundary
    of arrays (line 29-30,37-38)
    3. Removed some unnecessary parts(line 46-48,56-58)
    4. Instead of appending already existing element, I have created new
    TinyTextEntity elements and removed them after usage(72-73,79)
    5. Restored the deletion of words(78). Deletion of word will crash the
    program, as all the TinyTextEntity in the nodes of the tree has reference to
    words. This memory will be deallocated at line 105.
    6. Another change like 4 is done in line 96-97.
    d7576a6a