I'm writting some idc scripts and I tried idapython but I dont have enough time to learn another language. Anyway I'm wonder if it's a good idea write idc scripts to scan for arithmetic bugs because most of them are very particular to their related functions.
Well there are all kinds of bugs you can use an automated scan to do. I personally find one part static one part dynamic helps, this is where Python is useful, as you can use PyDBG or ImmunityDebugger to do ALL of your magic.
I'm coding an idc script to scan for memmove and memcpy bugs, The thing is that I would like to know if there's a way to calculate var. length as the one used in this instruction.
mov ecx, [esp+6Ch+arg_4]
If you are looking to do this type of thing, then you could take a look at ImmunityDebugger and its stackanalyze library, it will tell you all that useful information :)
So are you scanning for the functions memmove and memcpy or are you including inline memcpys that are rep instructions or inside loops