1

Topic: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Development of the big difficult projects is impossible without usage of methodologies of programming and the work benches, helping to supervise quality of the code. First of all, it is the competent standard of coding, code reviews, units-tests, static and dynamic analyzers of the code. All it helps to reveal defects in the code at the earliest development cycles. In this article possibilities of static analyzer PVS-Studio on detection of errors and potential  in the code of operating system Android are shown. We hope that article draws attention of readers to methodology of static analysis of the code and they want to implement it in development process of own projects.

2

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> Development of the big difficult projects is impossible without usage of methodologies of programming and the work benches, helping to supervise quality of the code. First of all, it is the competent standard of coding, code reviews, units-tests, static and dynamic analyzers of the code. All it helps to reveal defects in the code at the earliest development cycles. In this article possibilities of static analyzer PVS-Studio on detection of errors and potential  in the code of operating system Android are shown. We hope that article draws attention of readers to methodology of static analysis of the code and they want to implement it in development process of own projects. What rare bosh

3

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, a_g_99, you wrote: __> Hello, Analytic2007, you wrote: A>> Development of the big difficult projects is impossible without usage of methodologies of programming and the work benches, helping to supervise quality of the code. First of all, it is the competent standard of coding, code reviews, units-tests, static and dynamic analyzers of the code. All it helps to reveal defects in the code at the earliest development cycles. In this article possibilities of static analyzer PVS-Studio on detection of errors and potential  in the code of operating system Android are shown. We hope that article draws attention of readers to methodology of static analysis of the code and they want to implement it in development process of own projects. __> what rare bosh At all it not bosh, and marketing. Even enviably to such diligence and persistence Hey you, abrupt, undertook whence ? Goes, does not note, looks atop - It was typed  manners, ... You where were typed, you where picked up a little? As abruptly takes away,  I will fall! Or I will turn also trace I will go, I will go... She is abrupt a child, well gives... All runs about, and it goes... At it it is a lot of talent -   the road. () Cabaret-duet Academy

4

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> Development of the big difficult projects is impossible without usage of methodologies of programming and the work benches, helping to supervise quality of the code. <...> If not a secret, than translated this article into English? I at first was thought that , on the contrary.

5

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> In this article possibilities of static analyzer PVS-Studio on detection of errors and potential  in the code of operating system Android are shown. We hope that article draws attention of readers to methodology of static analysis of the code and they want to implement it in development process of own projects. Business good, but surprises with places your nonprofessionalism. In comments specify that {} while (0) is a known pattern for avoiding goto, and you try to overpersuade. It really pattern and really known. It seems that the analysis With ++ the code it is necessary to understand it is better.

6

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

__> what rare bosh I Ask to justify.

7

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

L> If not a secret, than translated this article into English? I at first was thought that , on the contrary. If you noted any errors we will be grateful if you inform us on them. On a site viva64 you can use Orphus (Ctrl-Enter).

8

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

N> Business good, but surprises with places your nonprofessionalism. In comments specify that {} while (0) is a known pattern for avoiding goto, and you try to overpersuade. It really pattern and really known. It seems that the analysis With ++ the code it is necessary to understand it is better. No, you are not right. To me the pattern {} while (0) and many other things is known. And that that is described in article, is an error. To repeat discussion of sense is not present. I ask to look here at this branch of arguings at Habre: https://habr.com/company/pvs-studio/blo … t_18949701

9

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> Is not present, you are not right. To me the pattern {} while (0) and many other things is known. And that that is described in article, is an error. To repeat discussion of sense is not present. I ask to look here at this branch of arguings at Habre: https://habr.com/company/pvs-studio/blo … t_18949701 I after perusal of this branch also wrote here. Your comment:> And generally, what for then a cycle? It was possible not to write a cycle generally. Says that are not familiar with such pattern. And it that an old pattern. The error in the code there is? Yes, is, here you are right. But nevertheless a question "And generally, what for then a cycle?" Should not be, it it is initially clear what for.

10

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

11

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> If to replace continue on break and to delete a cycle, exchanges nothing. For this purpose it is necessary to see a function original form, history of its appearance. I will risk to assume that earlier there either was not switch, or there were other actions.

12

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> If you noted any errors we will be grateful if you inform us on them. On a site viva64 you can use Orphus (Ctrl-Enter). You did not answer my question. P.S. I already clarified that it was, most likely, not , not Yandex-translator and not PROMT-online.

13

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> If you noted any errors we will be grateful if you inform us on them. On a site viva64 you can use Orphus (Ctrl-Enter). That is to use free of charge your program, it is necessary in each file in the first line to write a magic phrase. And to the professional technical translator you suggest to communicate with you through the back coupling form? ...... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>

14

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: __>> what rare bosh A> I Ask to justify. You write in comments that Tizen did not fly up. But in article about Android it is visible the following: At the first check the analyzer produces many false actuatings, but it is not a problem. Our command is ready to help with recommendations about adjustment of the analyzer for abbreviation of an amount of false actuatings. Also we are ready to give a license key for a month or more if it is required. In general, write to us, we help and we prompt. Here and so it is modest to developers of Google whom on five times a day balls in the bus push and love round manholes - suggest to write to you and all of you  in the best possible way the Arrogance is the most feeble word which comes to mind. Well and the constant mention in the test about shortage of time, about absence of forces, about laziness - it is global in a minus. By itself, I understand what to rake  Androida  happiness a little... But nevertheless. For these reasons as a whole article looks .... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>

15

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: Such checks are senseless. If it was not possible to select storage under object the type exception std:: bad_alloc is generated, and business simply does not reach check of value of the pointer. You  test, there exceptions are ungeared. There new really returns NULL if what not so. Yes, not standardly, but as is. Generally, new even with exceptions it is possible to redefine the operator and simply not to throw them. Whether at you it is adjusted that? The heap of projects is with out-of-operation exceptions.

16

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> Development of the big difficult projects is impossible without usage of methodologies of programming and the work benches, helping to supervise quality of the code. First of all, it is the competent standard of coding, code reviews, units-tests, static and dynamic analyzers of the code. All it helps to reveal defects in the code at the earliest development cycles. In this article possibilities of static analyzer PVS-Studio on detection of errors and potential  in the code of operating system Android are shown. We hope that article draws attention of readers to methodology of static analysis of the code and they want to implement it in development process of own projects. To tell the truth, did not want to answer, but already  - I tried yours pvs, the acquaintance even has the bought version, asked our code to run and send a report file. The nonsense, to its god, without insults, is so much nonsense you produce in gmp, empty warnings is something. On me so ++ with the maximum adjustment and that more than the intelligible produces C Intel, by the way, on business and sets thinking. In what a difference between a mode of the analysis of the code from studio and yours - it is not strongly clear, in the first case though it is clear  that can to lead potential dereference null pointer.

17

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: A> Development of the big difficult projects is impossible without usage of methodologies of programming and the work benches, helping to supervise quality of the code. First of all, it is the competent standard of coding, code reviews, units-tests, static and dynamic analyzers of the code. All it helps to reveal defects in the code at the earliest development cycles. In this article possibilities of static analyzer PVS-Studio on detection of errors and potential  in the code of operating system Android are shown. We hope that article draws attention of readers to methodology of static analysis of the code and they want to implement it in development process of own projects. Why? I - ideal.

18

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

Hello, Analytic2007, you wrote: I do not have claims either to article, or to your product (I will not understand, whence it is so much hatred). The unique request - next time  similar links in a C ++, instead of here. Here it nevertheless an offtopic.

19

Re: Checked up by means of PVS-Studio source codes Android, or nobody is ideal

W> I do not have claims either to article, or to your product (I will not understand, whence it is so much hatred). The unique request - next time  similar links in a C ++, instead of here. Here it nevertheless an offtopic. ok.