更安全,更好 [英] Safer and Better C

查看:72
本文介绍了更安全,更好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我一直没有使用C语言。我对C

没有其他的一般理解。最近使用strlcpy和strlcat的回复显示,我不知道最好和最安全的技术。有没有

的地方,我可以在那里了解更多关于更安全和更好的C(在FreeBSD上)?

谢谢

解决方案

bazad写道:


我一直没有使用C语言。我对C
有一个大致的了解,没有别的。最近使用strlcpy和strlcat的回复表明我不知道最好和最安全的技术。有没有什么地方可以让我更多地了解更安全和更好的C(在FreeBSD上)?




没有理由不开始新的线程。这应该是

a回复某些其他帖子中的内容,有足够的材料

引用并归因于我们将事情放在上下文中。


C本质上是不安全的。通过监控这个新闻组,您现在将获得
,然后了解如何安抚潜伏的老虎。

除此之外,您只需要知道发生了什么。


-

Chuck F(cb********@yahoo.com)(cb ******** @ worldnet .att.net)

可用于咨询/临时嵌入式和系统。

< http://cbfalconer.home.att.net>使用worldnet地址!


bazad写道:

我没有一直使用C语言。
我有一个对C的一般理解并没有别的。
最近使用strlcpy和strlcat的回复告诉我
我不知道最好和最安全的技术。
有没有地方
我可以在哪里学到更多关于更安全和更好的C(在FreeBSD上)?




类型


man strlcpy





man strlcat


在你的FreeBSD提示符下。


" bazad" <无**** @ noreply.not>在消息中写道

news:1097780068.uMbmVua0IQ4XTixLRe9hpg@teranews ...



我一直没有使用C语言。我对C
有一个大致的了解,没有别的。最近使用strlcpy和strlcat的回复表明我不知道最好和最安全的技术。有没有什么地方可以让我更多地了解更安全和更好的C(在FreeBSD上)?

谢谢




阅读这个帖子

http://books.slashdot.org/article.pl...102&tid=190&ti

d = 130& tid = 6

a几天后回来。说完整章节关于安全C.


HTH


Hi,

I am not using C all the time. I have a general understanding of C
and nothing else. The recent reply to use strlcpy and strlcat showed
me that I am not aware of the best and safe techniques. Is there any
place where I could learn more about safer and better C (on FreeBSD)?
Thank you

解决方案

bazad wrote:


I am not using C all the time. I have a general understanding of C
and nothing else. The recent reply to use strlcpy and strlcat showed
me that I am not aware of the best and safe techniques. Is there any
place where I could learn more about safer and better C (on FreeBSD)?



Do not start a new thread without a reason. This should have been
a reply to something in some other thread, with sufficient material
quoted and attributed for us to put things in context.

C is inherently unsafe. By monitoring this newsgroup you will now
and then find out about ways of appeasing the lurking tigers.
Beyond that you just have to be aware of what is going on.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!


bazad wrote:

I am not using C all the time.
I have a general understanding of C and nothing else.
The recent reply to use strlcpy and strlcat showed me that
I am not aware of the best and safe techniques.
Is there any place
where I could learn more about safer and better C (on FreeBSD)?



Type

man strlcpy

or

man strlcat

at your FreeBSD prompt.


"bazad" <no****@noreply.not> wrote in message
news:1097780068.uMbmVua0IQ4XTixLRe9hpg@teranews...

Hi,

I am not using C all the time. I have a general understanding of C
and nothing else. The recent reply to use strlcpy and strlcat showed
me that I am not aware of the best and safe techniques. Is there any
place where I could learn more about safer and better C (on FreeBSD)?
Thank you



Read this thread

http://books.slashdot.org/article.pl...102&tid=190&ti
d=130&tid=6

a couple of days back. Says that a complete chapter on secure C.

HTH


这篇关于更安全,更好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆