Opened 4 years ago
Closed 4 years ago
#580 closed ожидается проверка (задача сдана)
WW#10
Reported by: | Igor Engel | Owned by: | Sokolov Viacheslav |
---|---|---|---|
Component: | WW figures | Version: | |
Keywords: | Cc: |
Description
Change History (3)
comment:1 Changed 4 years ago by
Type: | ожидается проверка → ожидаются исправления |
---|
comment:2 Changed 4 years ago by
Type: | ожидаются исправления → ожидается проверка |
---|
Поправил
Поправил
Вроде как поправил
comment:3 Changed 4 years ago by
Resolution: | → задача сдана |
---|---|
Status: | assigned → closed |
================================================================= ==12473==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x6030000000a0 #0 0x7f1dec9fec2f in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10ec2f) #1 0x55e419ccfdb0 in Circle::~Circle() (/home/nicesap/HSE/svn/engel.igor/lab_10/lab_10+0x3db0) #2 0x55e419ccf4ad in Scheme::~Scheme() (/home/nicesap/HSE/svn/engel.igor/lab_10/lab_10+0x34ad) #3 0x55e419cd1de9 in test_smoke() (/home/nicesap/HSE/svn/engel.igor/lab_10/lab_10+0x5de9) #4 0x55e419ccf06a in main (/home/nicesap/HSE/svn/engel.igor/lab_10/lab_10+0x306a) #5 0x7f1debf28b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #6 0x55e419ccf269 in _start (/home/nicesap/HSE/svn/engel.igor/lab_10/lab_10+0x3269) 0x6030000000a0 is located 0 bytes inside of 17-byte region [0x6030000000a0,0x6030000000b1) allocated by thread T0 here: #0 0x7f1dec9fdeaf in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10deaf) #1 0x55e419ccffd1 in Circle::Circle(int, int, int, int, char const*) (/home/nicesap/HSE/svn/engel.igor/lab_10/lab_10+0x3fd1) SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10ec2f) in operator delete(void*) ==12473==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0 ==12473==ABORTING
Note: See
TracTickets for help on using
tickets.
Деструктор Scheme реализован неправильно, в нем утечка.
В обновленном условии написано про Circle.
В Circle::is_inside потенциальное переполнение (в Rectangle::is_inside будем считать, что не бывает переполнения)